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/fitz/image.c | |
parent | fdbac72cedd64c9b2a781b05907c89220797c0ae (diff) | |
download | mupdf-b30cc7aa30c5400893cb9c5f70d5ce8ca21c3831.tar.xz |
Default to invert_cmyk_jpeg for all formats other than PDF.
Diffstat (limited to 'source/fitz/image.c')
-rw-r--r-- | source/fitz/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c index 9a4d35a6..4728c5f3 100644 --- a/source/fitz/image.c +++ b/source/fitz/image.c @@ -402,6 +402,7 @@ fz_new_image_from_pixmap(fz_context *ctx, fz_pixmap *pixmap, fz_image *mask) image->h = pixmap->h; image->n = pixmap->n; image->colorspace = fz_keep_colorspace(ctx, pixmap->colorspace); + image->invert_cmyk_jpeg = 1; image->bpc = 8; image->buffer = NULL; image->get_pixmap = NULL; @@ -439,6 +440,7 @@ fz_new_image(fz_context *ctx, int w, int h, int bpc, fz_colorspace *colorspace, image->bpc = bpc; image->n = (colorspace ? colorspace->n : 1); image->colorspace = colorspace; + image->invert_cmyk_jpeg = 1; image->interpolate = interpolate; image->imagemask = imagemask; image->usecolorkey = (colorkey != NULL); |