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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes