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
Reducing required space of jpeg image
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Reducing required space of jpeg image
Try the "quality" option, eg:
convert in.jpg -quality 10 out.jpg
convert in.jpg -quality 10 out.jpg
snibgo's IM pages: im.snibgo.com
Re: Reducing required space of jpeg image
Thank you very much. Do you know what is the MagickWand function that realize conversion?
Thank
Thank
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Reducing required space of jpeg image
No, sorry. Try the MagickWand forum on:
index.php
index.php
snibgo's IM pages: im.snibgo.com
Re: Reducing required space of jpeg image
This is the solution
// set the compression quality to value (high quality = low compression)
MagickSetImageCompressionQuality(magick_wand,100);
// set the compression quality to value (high quality = low compression)
MagickSetImageCompressionQuality(magick_wand,100);