Page 1 of 1

How do I manage a compression settings

Posted: 2014-11-26T01:35:38-07:00
by wizard29
Hi, everybody.

How do I manage compression settings for various file format via the Magick++ or the MagickCore API?

I know the Convert utility supports the "-define key{=value}..." options and grant an access to manage compression settings for different encoders. But I cannot found the same possibility in programming API.

Re: How do I manage a compression settings

Posted: 2014-11-26T03:31:14-07:00
by wizard29
Is it correct to use Image::defineValue for it?

Re: How do I manage a compression settings

Posted: 2014-11-26T03:51:18-07:00
by snibgo
I don't use MagickWand, but I think you should use two of the following functions:

Code: Select all

c:\cygwin64\home\Alan\ImageMagick-6.9.0-0>cgrep /iwand\*.h /s*set*compress* /g /f\f\s\r\n

wand\magick-image.h   MagickSetImageCompression(MagickWand *,const CompressionType),
wand\magick-image.h   MagickSetImageCompressionQuality(MagickWand *,const size_t),
wand\magick-property.h   MagickSetCompression(MagickWand *,const CompressionType),
wand\magick-property.h   MagickSetCompressionQuality(MagickWand *,const size_t),

Re: How do I manage a compression settings

Posted: 2014-11-26T05:27:00-07:00
by wizard29
The Image::defineValue works fine!
Thanks!