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

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

XMLWordPrintable

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

      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);
      }
      

       

        For Gerrit Dashboard: QTBUG-80538
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes