compressing TIFF without loosing the layers

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
lriou

compressing TIFF without loosing the layers

Post by lriou »

hello everyone,
I'm very new to this. I'm trying to gain space on a HD by compressing every tiff file on the drive. I've allready spent hours fixing the recursive dos script and make everything work, but now I'm lost. Output files are compressed as I need, but I loose layers : the file is flattened : only the background is left.

I use this command :
convert -compress lzw [filename] [filename]

If there is there any simple switch to prevent the merging, I can't find it.

Has anyone any clue about this ?
thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: compressing TIFF without loosing the layers

Post by fmw42 »

have you tried

convert filename -compress lzw filename

see http://www.imagemagick.org/Usage/formats/#tiff

for further info about Tiff
Post Reply