Page 1 of 1

sample-factor

Posted: 2016-10-25T09:13:41-07:00
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!

Re: sample-factor

Posted: 2016-10-25T11:44:16-07:00
by snibgo
(a) At a guess, Magick::Options::samplingFactor() looks likely.

I don't know about your other questions.

Re: sample-factor

Posted: 2016-10-25T15:36:11-07:00
by cujsmith
Thanks again snibgo, I got it working with defineValue.