summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/util.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-01 14:11:01 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-09 14:02:19 +0200
commita644f7e67af05dca8601e379442690c724030738 (patch)
tree6e92f987323842dc397f48980852615f204138f7 /include/mupdf/fitz/util.h
parent7f97f80d1a74a50d369b3bdf513de7fbcaed6bc3 (diff)
downloadmupdf-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/mupdf/fitz/util.h')
-rw-r--r--include/mupdf/fitz/util.h5
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