Page 1 of 1

can't seem to produce jpgs smaller than 30kB

Posted: 2007-10-31T02:47:22-07:00
by alii
Hi, I'm using mini_magick as an interface to ImageMagick for a web-application. I'm basically only using -quality and -resize.

I'm starting off with a 1MB jpeg, and resizing to 150x150 with quality 100 gives a file about 42kB, which is too big for my usage. So I thought "i'll just reduce the quality". 80% gave 37kB, still too big. So I reduce the image size to 130x130 -> 33kB. Reduce to 100x100 -> 32kB. Reduce to 1x1 -> 30kB!!!

Surely something's wrong here? That kind of file should be a few kB at most. Is there any way to strip out all the meta data? Any ideas as to why I'm hitting this file-size limit? With halving the resolution and lowering the quality i'm only taking 1/4 off the filesize?! And reducing the image size to nothing still leaves me with 30kB?!

Can anyone suggest some optimum settings for low filesizes?

cheers,

alistair

Re: can't seem to produce jpgs smaller than 30kB

Posted: 2007-10-31T07:50:56-07:00
by el_supremo
Add the -strip command to remove profiles and other meta-data.

Pete

Re: can't seem to produce jpgs smaller than 30kB

Posted: 2007-10-31T12:04:43-07:00
by alii
excellent! thanks :)

My 80% 150x150 is now 8 kB and the 1 pixel image is only 300 bytes :)