reducing JPGE file size

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
peterbradd

reducing JPGE file size

Post by peterbradd »

I need my JPEG's to be less than 3mb, remaining 300DPI and 4x6.
I have 132 JPEG's

I entered:

peter-bradds-powerbook-g4-15:/users/peter/desktop/temp peter$ mogrify -density 300 jpg -quality 98 *.jpg
mogrify: unable to open image `jpg': No such file or directory @ blob.c/OpenBlob/2480.

What am i doing wrong?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: reducing JPGE file size

Post by fmw42 »

try

mogrify -format jpg -density 300 -quality 98 *.jpg

adjust -quality to reach the filesize you need.

Also recommend that you use -path to some other directory, so you don't overwrite your original images.

make a new directory (say test2), cd to the first directory containing your images (say test1)

mogrify -path /pathto/test2 -format jpg -density 300 -quality XX *.jpg

Note mogrify is dangerous if used wrong, you can lose all your originals

see http://www.imagemagick.org/Usage/basics/#mogrify
peterbradd

Re: reducing JPGE file size

Post by peterbradd »

Hi this is what I received

peter-bradds-powerbook-g4-15:/users/peter/desktop/temp peter$ mogrify -path /pathto/test2 -format jpg -density 300 -quality 98 *.jpg
mogrify: unable to open image `/pathto/test2/0566CKCS 4"x6" Postcards_EURW-5.jpg': No such file or directory @ blob.c/OpenBlob/2480.

Thanks in advance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: reducing JPGE file size

Post by fmw42 »

"pathto" was just a placeholder for you to put your actual path to whatever new directory you build
Post Reply