From 2f8c9375dc0624aff0bac7f5efe4dcbee78453a4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 27 Feb 2013 19:01:41 +0000 Subject: Force colorspaces to match with JPX images. If the colorspace given in the dictionary of a JPX image differs from the colorspace given in the image itself, decode to the native image format, then convert. This goes a long way towards fixing "1439 - color softmask fails to draw jpx image.pdf" (aka hivemind.pdf). The lack of transfer function support hopefully explains the rest. --- pdf/pdf_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf') diff --git a/pdf/pdf_image.c b/pdf/pdf_image.c index a756b648..f87ba00d 100644 --- a/pdf/pdf_image.c +++ b/pdf/pdf_image.c @@ -335,7 +335,7 @@ pdf_load_image_imp(pdf_document *xref, pdf_obj *rdb, pdf_obj *dict, fz_stream *c fz_pixmap *mask_pixmap; if (image->n != 2) fz_throw(ctx, "soft mask must be grayscale"); - mask_pixmap = fz_alpha_from_gray(ctx, image->tile, 1); + mask_pixmap = fz_alpha_from_gray(ctx, image->tile, 0); fz_drop_pixmap(ctx, image->tile); image->tile = mask_pixmap; } -- cgit v1.2.3