Image file size increasing after convert command

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
vdhiman23
Posts: 2
Joined: 2018-04-13T02:20:21-07:00
Authentication code: 1152

Image file size increasing after convert command

Post by vdhiman23 »

Hi,

I am using below command to compress the image.

"C:\Program Files\ImageMagick-6.9.9-Q16\convert.exe" -define jpeg:size=319x319 ${filename} -thumbnail 319x319 cq5dam.thumbnail.319.319.png

But when I compare the result with actual, I find the size of png is increasing. How can I fix that issue.

Thanks,
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Image file size increasing after convert command

Post by snibgo »

"Increasing" compared to what?
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Image file size increasing after convert command

Post by Bonzo »

What format is the original image?
I belive this is only used when saving as a jpg: -define jpeg:size=319x319
Post Reply