Tiled TIFFs
Posted: 2010-09-16T08:40:07-07:00
Another small issue with the TIFF format:
When one creates a tile-based TIFF, there's still a rows-per-strip tag written.identify -verbose logo_tile.tif
...
tiff:rows-per-strip: 12
Such files have tile tags AND strip tags. I think, the strip tags should be omitted here.
Oh, and: When one tries to create a tiled TIFF with wrong values (values not divisible by 16), ImageMagick sometimes crashes.
This one still 'works': (There's no crash, but a normal error message and the bad value is set to maximum here.)Magick: try.tif: Bad value 130 for "TileWidth" tag. `_TIFFVSetField' @ error/tiff.c/TIFFErrors/494.
But this one crashes:
At least with my installation of IM v6.6.4-2 Q16, on Windows XP.
When one creates a tile-based TIFF, there's still a rows-per-strip tag written.
Code: Select all
convert logo: -define tiff:tile-geometry=128x128 logo_tile.tif
...
tiff:rows-per-strip: 12
Such files have tile tags AND strip tags. I think, the strip tags should be omitted here.
Oh, and: When one tries to create a tiled TIFF with wrong values (values not divisible by 16), ImageMagick sometimes crashes.
This one still 'works': (There's no crash, but a normal error message and the bad value is set to maximum here.)
Code: Select all
convert logo: -define tiff:tile-geometry=130x128 try1.tif
But this one crashes:
Code: Select all
convert logo: -define tiff:tile-geometry=128x130 try2.tif