Page 1 of 1

after resize - image file size issue

Posted: 2008-03-20T06:28:57-07:00
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

Re: after resize - image file size issue

Posted: 2008-03-20T07:16:41-07:00
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

Re: after resize - image file size issue

Posted: 2008-03-20T08:42:01-07:00
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.

Re: after resize - image file size issue

Posted: 2008-03-20T08:59:50-07:00
by cmancre
I did a quick test, the results looks like the same.

Thanks