Page 1 of 1

Reducing required space of jpeg image

Posted: 2010-02-26T03:03:53-07:00
by erotavlas_turbo
Hi,

I use the command convert to draw text over the image. The input image is jpeg 355X288 pixels (CIF format) and it requires about 25 kbyte, after that convert command is applied the image requires 38 kbyte.
Is there a way to reduce the required space (increasing jpeg compression)?

Thank you in advance

Re: Reducing required space of jpeg image

Posted: 2010-02-26T04:05:39-07:00
by snibgo
Try the "quality" option, eg:

convert in.jpg -quality 10 out.jpg

Re: Reducing required space of jpeg image

Posted: 2010-02-26T04:30:11-07:00
by erotavlas_turbo
Thank you very much. Do you know what is the MagickWand function that realize conversion?

Thank

Re: Reducing required space of jpeg image

Posted: 2010-02-26T05:10:59-07:00
by snibgo
No, sorry. Try the MagickWand forum on:
index.php

Re: Reducing required space of jpeg image

Posted: 2010-02-26T05:14:06-07:00
by erotavlas_turbo
This is the solution

// set the compression quality to value (high quality = low compression)
MagickSetImageCompressionQuality(magick_wand,100);