Rezize a jpg like jpg compression

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
RainerSchm

Rezize a jpg like jpg compression

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Rezize a jpg like jpg compression

Post by fmw42 »

see -quality and -compression for JPG images at http://www.imagemagick.org/Usage/formats/#jpg_write
RainerSchm

Re: Rezize a jpg like jpg compression

Post by RainerSchm »

yes, great it works perfect with quality 30% and the resulting file size is very similar to ACDsee.

Thank you

Rainer
Post Reply