Page 1 of 1

Rezize a jpg like jpg compression

Posted: 2009-06-01T11:44:19-07:00
by RainerSchm
Hi

I have to reduce the size a jpg picture to a maximum picture size of 1028x1028 and a maximum file size of 248kB.

I tried to use convert -resize but there I just can change the picture size but could not find how to reduce the file size at the same time or step by step. If using a photoshop programm like ACDsee I can first set the picture size (width x height) and then choose a compression factor. My original jpg file specs are e.g. 1.8 MB with 2592x1944 px. If I use a size of 1028x1028 with a compression factor of 30% I easily get below 248KB.

Unfortunately there is no ACDsee available for Linux. Therefore I try to find a work around with Image Magick. Is there something similar like the compression factor of 30%?

Best regards

Rainer

Re: Rezize a jpg like jpg compression

Posted: 2009-06-01T13:20:01-07:00
by fmw42
see -quality and -compression for JPG images at http://www.imagemagick.org/Usage/formats/#jpg_write

Re: Rezize a jpg like jpg compression

Posted: 2009-06-01T14:48:38-07:00
by RainerSchm
yes, great it works perfect with quality 30% and the resulting file size is very similar to ACDsee.

Thank you

Rainer