convert creates invalid TIFF files

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Greg Coats
Posts: 31
Joined: 2004-10-28T11:18:28-07:00
Location: Virginia, USA
Contact:

convert creates invalid TIFF files

Post 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
Post Reply