summaryrefslogtreecommitdiff
path: root/gpdl
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2021-01-12 22:11:13 -0800
committerRay Johnston <ray.johnston@artifex.com>2021-01-12 22:11:13 -0800
commit79decaf7eca50a7dc6201dc86ef487ee1e7563f9 (patch)
tree5e1cc5ead0849d692cd08aab01e0bcd967f16a96 /gpdl
parent904c546962cb749fa8136130612e1c0a9cf558af (diff)
downloadghostpdl-79decaf7eca50a7dc6201dc86ef487ee1e7563f9.tar.gz
Fix GhostPDL TIFF reader to be able to handle tiff32nc output.
The PHOTOMETRIC_SEPARATED case would only handle num_comps == 3, but the tiff32c device creates 4 component images with PHOTOMETRIC_SEPARATED. Allowing 3 or 4 components works.
Diffstat (limited to 'gpdl')
-rw-r--r--gpdl/tifftop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpdl/tifftop.c b/gpdl/tifftop.c
index 70a48f731..f3de80885 100644
--- a/gpdl/tifftop.c
+++ b/gpdl/tifftop.c
@@ -762,6 +762,8 @@ do_impl_process(pl_interp_implementation_t * impl, stream_cursor_read * pr, int
}
break;
case PHOTOMETRIC_SEPARATED:
+ if (tiff->num_comps == 3 || tiff->num_comps == 4)
+ break;
case PHOTOMETRIC_YCBCR:
case PHOTOMETRIC_CIELAB:
case PHOTOMETRIC_ICCLAB: