[cairo] cairocffi and GDK-PixBuf for decoding JPEG and other image formats

Simon Sapin simon.sapin at exyr.org
Tue Feb 26 06:30:59 PST 2013


Hi,

A long-standing feature request on cairo has been the ability to decode 
JPEG and other image formats, just like 
cairo_image_surface_create_from_png() does for PNG.

The response has been that this does not belong in cairo itself.

GDK-PixBuf can load many image formats, but uses a different internal 
format for pixel data. I just added some integration code in cairocffi, 
to wrap GDK-PixBuf and do the pixel conversion:

http://pythonhosted.org/cairocffi/pixbuf.html

(cairocffi is a drop-in alternative to pycairo.)


Happy image decoding!
-- 
Simon Sapin


More information about the cairo mailing list