after resize - image file size issue

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
cmancre

after resize - image file size issue

Post by cmancre »

Hi everyone. :D

I have a bunch of file, sizes ~ 1000px X 1000px.

Then I did a resize to smaller files "convert original.jpg -resize 80 smaller.jpg"

Now I have ~ 80px X 80px images with ~ 34kb. This is too big.

I know that I can use "quality 70" for example.

Now the question: is there a way for choosing the quality saying that the file has to be 20kb maximum for example?

Thanks
cmancre

Re: after resize - image file size issue

Post by cmancre »

Hi again, I found this command in a blog "-strip". it's working like a glove.

Now my images of 80x80 are ~2kb instead of ~20kb. 8)

What really does the -strip command? The documentation description is too short for my knowledge, didn't helped much. Thanks imagemagick
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: after resize - image file size issue

Post by Bonzo »

-strip removes all the EXIF information and I pressume the EXIF thumbnail; if you had used -thumbnail instead of -resize you would not need to use -strip as it is done automaticly.
cmancre

Re: after resize - image file size issue

Post by cmancre »

I did a quick test, the results looks like the same.

Thanks
Post Reply