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

[REG 5.15.x -> 6.x] Indexed images become dithered after scaling them

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.0, 6.1, 6.3, 6.4, 6.2
    • GUI: Other
    • None

    Description

      Reproducing this is as simple as converting any image (I have checked using a screenshot of my desktop) to the Indexed8 format using e.g. GIMP (https://docs.gimp.org/en/gimp-image-convert-indexed.html) then trying to scale it with QImage::scaled (personally I tried 1280x1280 with Qt::KeepAspectRatio, from 1920x1080) using Qt::SmoothTransforation (I haven't checked without the flag though). In Qt 6, the image becomes dithered, while in Qt 5 is not. Reverting b0b4fcd05cd5ae891da868829c1645acf7589acb fixes the issue, just removing convertToFormat(format()) after smoothScaled also fixes the issue.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ilya-fedin Ilya Fedin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes