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

Image files with wrong, but known, file name extension fail to load

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.0 Alpha
    • 5.11.0
    • Image formats
    • None
    • 82aabafadad2010f0f20abeeb7234057e3c10e9f (qt/qtbase/dev)

    Description

      If a valid jpeg file, say, is renamed to "foo.png", then QImage / QImageReader will by default report the file is invalid and fail to load the image. On the other hand, if it is renamed "foo.xyz", it will be recognized as jpeg (on content check) and load fine.

      This is inconsistent, and the former situation is probably more likely anyway, and so should be handled by default.

      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
              vgt Eirik Aavitsland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes