[cairo] JPEG Support For Libcairo

Bernhard Fischer bf at abenteuerland.at
Tue Dec 29 05:39:25 PST 2015


On Tuesday 29 December 2015 22:46:19 Adrian Johnson wrote:
> On 29/12/15 12:35, Enrico Weigelt, metux IT consult wrote:
> > On 28.12.2015 15:12, Bernhard Fischer wrote:
> >> I implemented two small functions which read/write JPEG into/from a Cairo
> >> image surface.
> > 
> > Added it to cairo tree - see patches.
> 
> The API is missing the stream functions. JPEG API has previously been
> proposed [1]. Behdad's reply [2] summarizes the reason the patches were
> declined:
> 
>   "PNG support is cairo's way to import and export images, and it
>   does the job just like that, losslessly and in a rather efficient
>   format. Anything else should be implemented on top of other cairo
>   API.  It's like the toy text api."
> 
> [1] http://lists.cairographics.org/archives/cairo/2007-January/009194.html
> [2] http://lists.cairographics.org/archives/cairo/2007-January/009200.html


This implementation like I've done is actually done on top of cairo. It does 
not access internal functions or structures in any way.

Bernhard



More information about the cairo mailing list