Re: xpm vs. png



On Sat, Sep 19, 1998 at 01:10:38PM -0400, John Ellis wrote:
> >>Hmm, thinking about the subject line maybe I should have added the png
> >>versions of the gnome stock icons? Does this make sense?
> >
> >IMHO, png's are better, but since they are not installed and only used to
> >compile, it really does not matter.
> 
> An update on using convertrgb: Imlib's xpm loading function needs an X
> display, so as a work-around convertrgb first converts an xpm to ppm with
> convert, then loads that with Imlib's ppm loader.
> 
> Switching to png will remove that extra conversion, but any speed gain
> is probably not noticeable.

time ../../tools/convertrgb/convertrgb -n -a=tmp.h stock_*.xpm
real    0m6.770s
user    0m0.420s
sys     0m0.240s

time ../../tools/convertrgb/convertrgb -n -a=tmp.h stock_*.png
real    0m0.758s
user    0m0.480s
sys     0m0.120s

Sounds reasonable to switch to PNGs, doesn't it? :-)

-- 
Eckehard Berns



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]