commit | 8968f401f79f5b6b53b142fa06e2294fa97ead10 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sat Aug 14 01:17:10 2010 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sat Aug 14 01:17:10 2010 +0000 |
tree | 9667c3d0bdc18ecdc5ba0bfdc0d920b73843d75a | |
parent | 3c98a4f16d52dec9efa9a9b4e36b5624138b324a [diff] [blame] |
diff --git a/coders/tiff.c b/coders/tiff.c index bb8ed46..b60b09b 100644 --- a/coders/tiff.c +++ b/coders/tiff.c
@@ -1138,6 +1138,9 @@ if ((photometric == PHOTOMETRIC_MINISBLACK) || (photometric == PHOTOMETRIC_MINISWHITE)) method=ReadSingleSampleMethod; + if ((photometric == PHOTOMETRIC_RGB) && + (bits_per_sample <= 8)) + method=ReadGenericMethod; if ((photometric != PHOTOMETRIC_SEPARATED) && (interlace == PLANARCONFIG_SEPARATE)) method=ReadGenericMethod;