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

QImageReader guess a wrong format for tga image

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.14.1
    • Image formats
    • None
    • All

    Description

       

      QImageReader reader(QLatin1String("test-flag.tga"));
      reader.setDecideFormatFromContent(true);
      QString format = reader.format();
      
      qDebug() << "Image format: " << format;

       

      When the QImageReader setDecideFormatFromContent(true), and loaded a tga image, the format may returns "ico".

       

      It seems that the ico plugins miss canRead the tga image, since the ico format handler is try before tag format handler.

       

      Please notice that the tga image was taken from qtimageformats/tests/shared/images/tga/test-flag.tga.

       

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            timxx Weitian Leung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes