[cairo] Reducing PNG Image Size

Carl Worth cworth at cworth.org
Wed Sep 24 12:40:35 PDT 2008


On Wed, 2008-09-24 at 12:36 -0700, Vladimir Vukicevic wrote:
> pngcrush essentially runs the compression algorithm with different  
> settings for the various knobs (window size, etc., iirc), and then  
> picks whatever the best results are.  It does a really good job, but  
> it's an expensive process... you essentially end up recompressing the  
> image around a dozen times.

Ah, cool.

So games like that wouldn't make sense in cairo_surface_write_to_png at
all. But an application making its own calls into libpng could easily do
things like that.

And as Vlad would say, all applications *should* be doing their own
calls rather than using cairo_surface_write_to_png.

-Carl




More information about the cairo mailing list