sample-factor

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
cujsmith
Posts: 8
Joined: 2016-10-13T16:18:14-07:00
Authentication code: 1151

sample-factor

Post by cujsmith »

a) Is there function in Magick++ to apply desired chroma subsampling factor (like the command line "-sampling-factor")?
b) Further, I understand that by default, when writing jpeg images, 4:2:0 subsampling will be applied by default up to quality factor 90; above 90, no subsampling will occur by default. Assuming a) above can be achieved, is there a way to force 4:2:0 subsampling on images written with quality factor greater than 90?
Thanks!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: sample-factor

Post by snibgo »

(a) At a guess, Magick::Options::samplingFactor() looks likely.

I don't know about your other questions.
snibgo's IM pages: im.snibgo.com
cujsmith
Posts: 8
Joined: 2016-10-13T16:18:14-07:00
Authentication code: 1151

Re: sample-factor

Post by cujsmith »

Thanks again snibgo, I got it working with defineValue.
Post Reply