Skip to content

Commit 0b6ca3f

Browse files
author
Cristy
committed
promote photometric tag to required
1 parent 5a51528 commit 0b6ca3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coders/tiff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
12121212
/* TIFFPrintDirectory(tiff,stdout,MagickFalse); */
12131213
if ((TIFFGetField(tiff,TIFFTAG_IMAGEWIDTH,&width) != 1) ||
12141214
(TIFFGetField(tiff,TIFFTAG_IMAGELENGTH,&height) != 1) ||
1215+
(TIFFGetFieldDefaulted(tiff,TIFFTAG_PHOTOMETRIC,&photometric,sans) != 1) ||
12151216
(TIFFGetFieldDefaulted(tiff,TIFFTAG_COMPRESSION,&compress_tag,sans) != 1) ||
12161217
(TIFFGetFieldDefaulted(tiff,TIFFTAG_FILLORDER,&endian,sans) != 1) ||
12171218
(TIFFGetFieldDefaulted(tiff,TIFFTAG_PLANARCONFIG,&interlace,sans) != 1) ||

0 commit comments

Comments
 (0)