diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2017-07-12 18:43:07 -0700 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-17 19:32:06 +0100 |
commit | a3d05504307e05e9bcf71aff7e5e86f0090bbba2 (patch) | |
tree | f54ef0d87cc2cdc9559107e02e53eaf1499c1ec5 /source/fitz/load-tiff.c | |
parent | 8260c7b828c5df4895db15196be70b4bb58fbee7 (diff) | |
download | mupdf-a3d05504307e05e9bcf71aff7e5e86f0090bbba2.tar.xz |
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
Diffstat (limited to 'source/fitz/load-tiff.c')
-rw-r--r-- | source/fitz/load-tiff.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index 08ca17a7..881498c0 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -1320,11 +1320,9 @@ fz_load_tiff_subimage(fz_context *ctx, unsigned char *buf, size_t len, int subim fz_unpack_tile(ctx, image, tiff.samples, tiff.samplesperpixel, tiff.bitspersample, tiff.stride, 0); /* We should only do this on non-pre-multiplied images, but files in the wild are bad */ + /* TODO: check if any samples are non-premul to detect bad files */ if (tiff.extrasamples /* == 2 */) - { - image = fz_ensure_pixmap_is_additive(ctx, image); fz_premultiply_pixmap(ctx, image); - } } fz_always(ctx) { |