Page 1 of 1

convert creates invalid TIFF files

Posted: 2007-07-27T10:07:27-07:00
by Greg Coats
The ImageMagick 6.3.5 07/22/2007 convert Mac OS X binary creates invalid TIFF files, that can not be read, nor displayed as TIFF images.
The ImageMagick 6.2.8 07/07/2006 convert Mac OS X binary creates valid TIFF files.

$ convert -version
Version: ImageMagick 6.3.5 07/22/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
$ convert -size 128x32 -type TrueColor -depth 8 -define tiff:rows-per-strip=32 xc:green green.tif
$ tiffinfo green.tif
green.tif: Not a TIFF file, bad version number 10752 (0x2a00).

$ convert -version
Version: ImageMagick 6.2.8 07/07/06 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
$ convert -size 128x32 -type TrueColor -depth 8 -define tiff:rows-per-strip=32 xc:green green.tif
$ tiffinfo green.tif
TIFF Directory at offset 0x3008 (12296)
Image Width: 128 Image Length: 32
Resolution: 72, 72 (unitless)
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 3
Rows/Strip: 32
Planar Configuration: single image plane
DocumentName: green.tif
Software: ImageMagick 6.2.8 07/07/06 Q8 http://www.imagemagick.org