From a3d05504307e05e9bcf71aff7e5e86f0090bbba2 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Wed, 12 Jul 2017 18:43:07 -0700 Subject: Don't convert cmyka images to rgba We should handle the cmyka images in their native form now that we are holding the data inverted. Fixes fts_17_1700.pdf Also fixes fts_43xx.xps --- source/fitz/pixmap.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/fitz/pixmap.c') diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c index d89889fd..21e75764 100644 --- a/source/fitz/pixmap.c +++ b/source/fitz/pixmap.c @@ -676,9 +676,6 @@ fz_premultiply_pixmap(fz_context *ctx, fz_pixmap *pix) if (!pix->alpha) return; - if (fz_colorspace_is_subtractive(ctx, pix->colorspace)) - fz_throw(ctx, FZ_ERROR_GENERIC, "cannot pre-multiply subtractive colors"); - for (y = 0; y < pix->h; y++) { for (x = 0; x < pix->w; x++) -- cgit v1.2.3