From b30cc7aa30c5400893cb9c5f70d5ce8ca21c3831 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 31 Aug 2015 18:54:53 +0200 Subject: Default to invert_cmyk_jpeg for all formats other than PDF. --- source/fitz/image.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz/image.c') 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); -- cgit v1.2.3