[cairo] Re: Embeding JPG in PDF

Kristian Høgsberg krh at bitplanet.net
Wed Jan 10 05:36:28 PST 2007


On 1/9/07, Stuart Parmenter <stuartp at gmail.com> wrote:
> Please don't add more formats to cairo.  Even adding one more is going
> to mean that someone will want yet another image format.  It is
> trivial to do external loading of jpegs and to put them in to
> surfaces.  Loading images just shouldn't be something cairo is in the
> business of doing.
>
> As for the actual topic this thread was started for...  I'm not sure
> that you really ever want to lose image quality when printing images
> do you?  I think adding stuff to cairo-pdf.h as Behdad suggest is
> probably the best way to go.

The topic isn't about encoding images lossyly to jpeg, it's about
images that are already stored as jpeg and can be directly embedded in
the pdf as such.  It's a valid use case, but it's not clear how the
API should look.

Kristian


More information about the cairo mailing list