Why my images get bigger in file 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
nip0n
Posts: 1
Joined: 2011-08-04T15:26:21-07:00
Authentication code: 8675308

Why my images get bigger in file size?

Post by nip0n »

Hi,

when i do this command:

$exec_cmd = IMAGE_MAGIC_CONVERT . ' '.$pic['file'].' '.$strip_exif.' -resize '.$new_width.'x -quality 85 '.$pic['file'];

I get image bigger in file size around 2-4 times bigger?

I wanna resize image from 2200x1580 to 1440x[auto] ...I got bigger file size? ie file size is 80k and after resize I got 450k

images are "jpg"
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Why my images get bigger in file size?

Post by fmw42 »

The quality of your input image may be much lower (more compressed) than the IM -quality 85. Perhaps you can post your command line with actual filenames and numbers and a link to your input jpg so that we can see what is happening.
Post Reply