TIFF added in #86 is not entirely valid, and both libtiff and ImageMagick complain about it.
$ tiffinfo tiff.tif
TIFFReadDirectory: Warning, TIFF directory is missing required "StripByteCounts" field, calculating from imagelength.
$ magick identify tiff.tif
identify: TIFF directory is missing required "StripByteCounts" field, calculating from imagelength. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/956.
identify: improper image header `tiff.tif' @ error/tiff.c/ReadTIFFImage/1349.
As I read the standard, it should add the StripByteCounts field, and terminate the IFD with a zero long to indicate no more IFDs.
TIFF added in #86 is not entirely valid, and both libtiff and ImageMagick complain about it.
As I read the standard, it should add the StripByteCounts field, and terminate the IFD with a zero long to indicate no more IFDs.