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
can't seem to produce jpgs smaller than 30kB
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: can't seem to produce jpgs smaller than 30kB
Add the -strip command to remove profiles and other meta-data.
Pete
Pete
Re: can't seem to produce jpgs smaller than 30kB
excellent! thanks
My 80% 150x150 is now 8 kB and the 1 pixel image is only 300 bytes
My 80% 150x150 is now 8 kB and the 1 pixel image is only 300 bytes