can't seem to produce jpgs smaller than 30kB

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
alii

can't seem to produce jpgs smaller than 30kB

Post 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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

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

Post by el_supremo »

Add the -strip command to remove profiles and other meta-data.

Pete
alii

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

Post by alii »

excellent! thanks :)

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