Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.0
-
None
Description
In order to change the color sub sampling in JPEG it is necessary to patch the qjpeghandler.cpp file, but it is hard to communicate from QImageWriter to turn it on and off.
The method setOption ( ImageOption option, const QVariant & value ) of QImageIOHandler should also be in QImageWriter and an additional option "subSampling" to set
cinfo.comp_info[0].v_samp_factor=subSampling;
cinfo.comp_info[0].h_samp_factor=subSampling;
in the write_jpeg_image function.
Other tools like ImageMagick allow this manipulation of this parameter.