mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
Added extra conditions for when ReadGenericMethod should be used when reading a jpeg compressed tiff file (dlemstra/Magick.NET/issues/2016)
This commit is contained in:
+3
-1
@@ -1744,7 +1744,9 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
|
||||
{
|
||||
if (photometric == PHOTOMETRIC_SEPARATED)
|
||||
method=GetJPEGMethod(image,tiff,photometric,bits_per_sample);
|
||||
else if (method != ReadStripMethod)
|
||||
else if ((method != ReadStripMethod) ||
|
||||
(compress_tag == COMPRESSION_OJPEG) ||
|
||||
(photometric == PHOTOMETRIC_YCBCR))
|
||||
method=ReadGenericMethod;
|
||||
}
|
||||
#if defined(WORDS_BIGENDIAN)
|
||||
|
||||
Reference in New Issue
Block a user