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

16-bit Grayscale TIFF is not loaded correctly

    XMLWordPrintable

Details

    • All
    • c4f7a15b0 (dev), e36f88b12 (6.9), fb9a2e78b (6.8)

    Description

      The image appears too large as if it was scaled up. See first screenshot. The Qt5 version loads the image properly (second screenshot).

      Qt6 loads the image into RGBX64 format. The Qt5 version loads the file into RGB32 format.

      The nature of the corruption could indicate a buffer overflow, but I did not get any error from valgrind.

      I have tested on Linux and Windows, libtiff 4.7 and 4.6 if that is relevant, the bug is the same. Which leads me to believe all platforms are affected.

      Test file on github

      The description of file from "file" command:

      16-bit-grayscale.tiff: TIFF image data, little-endian, direntries=19, height=480, bps=16, compression=deflate, PhotometricInterpretation=BlackIsZero, description=Created with GIMP, orientation=upper-left, width=640
      

      Qt5:

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            scrubbbbs John Dorian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes