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
Rezize a jpg like jpg compression
- 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
see -quality and -compression for JPG images at http://www.imagemagick.org/Usage/formats/#jpg_write
Re: Rezize a jpg like jpg compression
yes, great it works perfect with quality 30% and the resulting file size is very similar to ACDsee.
Thank you
Rainer
Thank you
Rainer