PDA

View Full Version : Imagemagick: tiff to jpg


Wardazo
February 29th, 2008, 09:35 AM
Hi

I'm trying to batch covert with perlmagick, but I don't even seem to be able to manage it on the command line!!

mogrify -format jpg -quality 70 -resize 300x300 file.tif

When I do this sure enough the image converts to jpg, shrinks to 300 by 300 but it's over one megabite in size on the disk; however, it's current memory size is about 50kb when I open it.

What am I doing wrong?

It Ubuntu 6.06 server edition

Ward

Creative2
February 29th, 2008, 10:53 AM
mm i know this

convert -resize 800x600 -quality value INPUT.any OUTPUT,jpeg

Wardazo
February 29th, 2008, 11:17 AM
Yes that should work, but with a 30mb .tif file I get a almost a 2mb jpg file using that command.

It's a different problem, I think related to large tif files... but I'm not really sure.

Thanks though.

Any other suggestions?

Wardazo
February 29th, 2008, 11:57 AM
SOLUTION: use the -strip flag

Just in case anyone has the same problem.

stani
February 29th, 2008, 01:58 PM
You can also use Phatch for this:
http://photobatch.stani.be

http://ubuntuforums.org/showthread.php?t=466598