[cairo] [PATCH] Enable links to image files in SVG backend

Alexander Shulgin alex.shulgin at gmail.com
Sun Jan 3 23:42:40 PST 2010


On Fri, Jan 1, 2010 at 11:36, Adrian Johnson <ajohnson at redneon.com> wrote:
>
> The cairo 1.9.4 development snapshot contains new API for embedding JPEG
> data in backends that support it (currently SVG, PDF, PS, and
> Win32-printing).
>
> The cairo_surface_set_mime_data() function associates JPEG data (and other
> formats) with a surface. When a surface with mime data is used as a source
> in a backend that supports the mime data, the mime data will be embedded
> instead of the image data.

Hi,

First, thanks for the hint. :)

But using this API still makes cairo output image data inline into SVG
file.  Although reasonable, it's not what I want.  I need it to put
mere URI link to the originating file, like this:

<image xlink:href="filename.jpg" width=... height=... />

This way I can edit photo image in the JPEG file afterwards w/o the
need to regenerate SVG file.



More information about the cairo mailing list