You need to log in before you can comment on or make changes to this bug.
TIFFTAG_PHOTOMETRIC is a required tag, however many graphic files are missing this entry. TIFFVGetFieldDefaulted shows Like TIFFGetField, but return any default value if the tag is not present in the directory. There is no case for TIFFTAG_PHOTOMETRIC, therefore requesting default value results in an error. Please provide default value, perhaps PHOTOMETRIC_MINISWHITE is appropriate regardless of the image color type.
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets, such as this one, have been migrated to the libtiff GitLab instance at https://gitlab.com/libtiff/libtiff/issues . The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is the initial Bugzilla issue number.