[magick-users] IM corrupting TIFF files when using -compress option?
Steven Cogorno
steven at cogorno.com
Wed Jun 6 18:55:21 PDT 2007
Hi,
I am trying to use the -compress option with convert to produce smaller
TIFF files. This is the command that I am using:
convert -units PixelsPerInch -density "100x100" -depth 8
-background white -flatten +matte -compress lzw INPUTFILE
tiff:OUTPUTFILE
If I don't use the compress option, the graphics convert fine (but
they're huge). If I add the -compress lzw, ImageMagick appears to
compress the file. Here's an example:
-rwxr-xr-x 1 cogorno staff 33940 Jun 6 18:28 compressed.tiff
-rwxr-xr-x 1 cogorno staff 225214 Jun 5 13:30 uncompressed.tiff
But, the compressed.tiff file is corrupt. The tiffinfo command reports:
compressed.tiff: Not a TIFF file, bad magic number 32821 (0x8035).
And, the Solaris file command reports:
compressed.tiff: 8086 relocatable (Microsoft)
I've installed the latest version of ImageMagick. (I downloaded the
Solaris 10 version -- I did not build this myself.)
Version: ImageMagick 6.3.4 05/25/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
I don't know what to try next. Has anyone seen this before?
Thanks!
-Steve Cogorno
--
Steven Cogorno
cogorno at fastmail.fm
More information about the Magick-users
mailing list