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

QPixmap::save() quality does not distinguish between lossy and lossless compression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.12
    • Image formats
    • None
    • All

      QPixmap::save() has a quality setting for images, but it does not distinguish between lossy and lossless compression. For PNG the lowest quality setting is the best (lossless) compression and the highest setting produces huge seemingly uncompressed files. For WebP the quality controls lossy compression, except 100 (the highest setting) is lossless.

      It is impossible to pick a quality setting if I don't know beforehand which image format I'm saving. There should be 2 settings, 1 for lossy compression and 1 for lossless compression. Or a higher quality could mean a higher lossless compression.

      Judging by the documentation it looks like it is the same in Qt 6, but I haven't verified it.

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

            vgt Eirik Aavitsland
            tastytea tastytea tastytea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes