Re: cairocffi and GDK-PixBuf for decoding JPEG and other image formats

Dominic Lachowicz <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAH2ZfN+woN-FoRRv7zC=UdvX-whfmpW0dJgRSUwh-pAfTy42XQ@mail.gmail.com>
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 <[email protected]> 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
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo



--
"I like to pay taxes. With them, I buy civilization." --  Oliver Wendell Holmes
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.