diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2013-09-06 08:00:46 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2013-09-06 08:00:46 +0930 |
commit | f52165a7bb3de56fe2a06771f554f3997e176b94 (patch) | |
tree | b96d010bb115c9d2820e6db0483d9219c49a6007 | |
parent | 8e1a1ed8631dd55b4344d5682e6c69e923e0401f (diff) |
svg: Don't embed CMYK Jpeg images
None of the SVG viewers I tried (rsvg, firefox, inkscape) support CMYK
Jpeg images.
Bug 68965
-rw-r--r-- | src/cairo-svg-surface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c index 5ee2857dc..c90183063 100644 --- a/src/cairo-svg-surface.c +++ b/src/cairo-svg-surface.c @@ -1118,6 +1118,9 @@ _cairo_surface_base64_encode_jpeg (cairo_surface_t *surface, if (unlikely (status)) return status; + if (image_info.num_components == 4) + return CAIRO_INT_STATUS_UNSUPPORTED; + _cairo_output_stream_printf (output, "data:image/jpeg;base64,"); info.output = output; |