View Single Post
Old 02-26-2013, 01:19 PM   #19
Hack&Lube
Atomic Nerd
 
Join Date: Jul 2004
Location: Calgary
Exp:
Default

So the highest compression seems to result from zipping via PPMd algorithm but that makes it difficult for the business to use files since they will have to unzip them.

Fortunately, I've found saving as a LZW compressed tif (lossless) via GIMP/Imagemagick results in a file that is still about 60-75% smaller on average.

Now I need to make a script to batch this job across several folders. Either imagemagick or gimp would work but I can't make the command line batch process work.

Any ideas? For Imagemagik, the following works:

Code:
convert -compress lzw source.tiff destination.tiff
but how can I use wildcards so it will just for instance compress everything in C:\IN and put the same files into C:\OUT? (I'll mount network locations to these folders). I've tried various of *, %, and $ but I think I'm doing it wrong. Any ideas?
Hack&Lube is offline   Reply With Quote