summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/load-tiff.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c
index 52dd1893..997e8392 100644
--- a/source/fitz/load-tiff.c
+++ b/source/fitz/load-tiff.c
@@ -1366,7 +1366,10 @@ fz_load_tiff_info_subimage(fz_context *ctx, unsigned char *buf, size_t len, int
*hp = tiff.imagelength;
*xresp = (tiff.xresolution ? tiff.xresolution : 96);
*yresp = (tiff.yresolution ? tiff.yresolution : 96);
- *cspacep = tiff.colorspace;
+ if (tiff.extrasamples /* == 2 */)
+ *cspacep = fz_device_rgb(ctx);
+ else
+ *cspacep = tiff.colorspace;
}
fz_always(ctx)
{