diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-08-01 14:11:01 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-08-09 14:02:19 +0200 |
commit | a644f7e67af05dca8601e379442690c724030738 (patch) | |
tree | 6e92f987323842dc397f48980852615f204138f7 /include | |
parent | 7f97f80d1a74a50d369b3bdf513de7fbcaed6bc3 (diff) | |
download | mupdf-a644f7e67af05dca8601e379442690c724030738.tar.xz |
Add common fz_write_image_as_data_uri function for HTML and SVG output.
Also ensure we don't write CMYK JPEG images.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mupdf/fitz/util.h b/include/mupdf/fitz/util.h index 5bd059e8..d452b58a 100644 --- a/include/mupdf/fitz/util.h +++ b/include/mupdf/fitz/util.h @@ -71,4 +71,9 @@ fz_display_list *fz_new_display_list_from_svg(fz_context *ctx, fz_buffer *buf, f */ fz_image *fz_new_image_from_svg(fz_context *ctx, fz_buffer *buf); +/* + Write image as a data URI (for HTML and SVG output). +*/ +void fz_write_image_as_data_uri(fz_context *ctx, fz_output *out, fz_image *image); + #endif |