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

QImageReader fails to load large (over 4GB) tiff file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.0 Alpha
    • 5.13.2
    • Image formats
    • None
    • 6124b900d9507687c21e43e68f495bbee9d8d45b (qt/qtimageformats/5.15)

    Description

      QImage fails to load large tiff files, over 4GB.

      The system libtiff (4.0.9 from Ubuntu 18.04) opens the same file successfully:

       

      TIFF* tif = TIFFOpen(fn, "r");
      if (tif) {
              uint32 w, h;
              TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w);
              TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);
              m_fullImage = QImage(w, h, QImage::Format_RGBA8888);
              TIFFReadRGBAImage(tif, w, h, (uint32 *)m_fullImage.bits(), 0);
              TIFFClose(tif);
      }
      

       

      Attachments

        Issue Links

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

          Activity

            People

              vgt Eirik Aavitsland
              dmytro.poplavskiy Dmytro Poplavskiy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes