]> granicus.if.org Git - graphviz/commit
Use cairo mime data to allow reduce the file size of cairo output
authorAdrian Johnson <ajohnson@redneon.com>
Mon, 26 Nov 2018 09:43:24 +0000 (20:13 +1030)
committerAdrian Johnson <ajohnson@redneon.com>
Mon, 26 Nov 2018 09:43:24 +0000 (20:13 +1030)
commit383ef9a8115cca546012a94840acce6afeff50e3
tree344145aa16b75e6aa36cbfb4d1154141caaad6b0
parent5a3437a08cc66e58c419314ccd4f35b1c74643f0
Use cairo mime data to allow reduce the file size of cairo output

The cairo image mime types, eg CAIRO_MIME_TYPE_JPEG, allow
applications to attached the original encoded image file. This allows
cairo backends that support the image encoding to embed the encoded
data directly in the ouptut instead of recompressing the image bitmap
with Flate.

The CAIRO_MIME_TYPE_UNIQUE_ID mime type allows applications to assign
a unique identifer to source surfaces. When surfaces with the same
identifer are used multiple times. The backend can, if supported, only
emit one copy of the image data for mupltiple uses.
plugin/gdk/gvloadimage_gdk.c