[cairo] cairocffi and GDK-PixBuf for decoding JPEG and other image formats
Dominic Lachowicz
domlachowicz at gmail.com
Tue Feb 26 06:33:44 PST 2013
Hi Simon,
FYI - GdkPixbuf has an equivalent function (set_source_pixbuf) that
can do this too.
http://www.pygtk.org/docs/pygtk/class-gdkcairocontext.html#method-gdkcairocontext--set-source-pixbuf
Cheers,
Dom
On Tue, Feb 26, 2013 at 9:30 AM, Simon Sapin <simon.sapin at exyr.org> wrote:
> 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
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
--
"I like to pay taxes. With them, I buy civilization." -- Oliver Wendell Holmes
More information about the cairo
mailing list