Reduce Image File Size to a specific size ?

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
niha

Reduce Image File Size to a specific size ?

Post by niha »

Hi guys,

I did some searchs and found out that ImageMagicK is capable of reducing image file size.

But, if I have a 1,5MB jpg file and I want to reduce the file size to EXACTLY 500KB ( for upload an avatar and highest quality ), is there a way to do so ?
Last edited by niha on 2008-11-19T22:21:01-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Reduce Image File Size to a specific size ?

Post by fmw42 »

niha wrote:Hi guys,

I did some searchs and found out that ImageMagicK is capable of reducing image file size.

But, if I have a 1,5MB jpg file and I want to reduce the file size to exactly 500KB ( for upload an avatar and highest quality ), is there a way to do so ?
You can use -quality or -compress, but as far as I know, neither will let you specify a desired file size. You have to do that by trial and error until you get the size you want. I don't believe that IM has such a feature.
niha

Re: Reduce Image File Size to a specific size ?

Post by niha »

Wow, thanks fmw42, :D , yeah, I only get some examples of reduce image file size without the specific size. <Topic close please> Thanks for all who read.
Post Reply