diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-08-31 18:54:53 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-09-01 10:38:56 +0200 |
commit | b30cc7aa30c5400893cb9c5f70d5ce8ca21c3831 (patch) | |
tree | 1bebd3e26ddcc78e969b7cf8a5d24657c3d354be /source/pdf | |
parent | fdbac72cedd64c9b2a781b05907c89220797c0ae (diff) | |
download | mupdf-b30cc7aa30c5400893cb9c5f70d5ce8ca21c3831.tar.xz |
Default to invert_cmyk_jpeg for all formats other than PDF.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c index 87fa8f38..f04b3c04 100644 --- a/source/pdf/pdf-image.c +++ b/source/pdf/pdf-image.c @@ -159,15 +159,16 @@ pdf_load_image_imp(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *di int gen = pdf_to_gen(ctx, dict); buffer = pdf_load_compressed_stream(ctx, doc, num, gen); image = fz_new_image(ctx, w, h, bpc, colorspace, 96, 96, interpolate, imagemask, decode, usecolorkey ? colorkey : NULL, buffer, mask); + image->invert_cmyk_jpeg = 0; } else { /* Inline stream */ stride = (w * n * bpc + 7) / 8; image = fz_new_image(ctx, w, h, bpc, colorspace, 96, 96, interpolate, imagemask, decode, usecolorkey ? colorkey : NULL, NULL, mask); + image->invert_cmyk_jpeg = 0; pdf_load_compressed_inline_image(ctx, doc, dict, stride * h, cstm, indexed, image); } - } fz_catch(ctx) { |