Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-901

Influence JPEG color sub sampling

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.3.0
    • GUI: Painting
    • None

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            rodal Samuel Rødal
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes