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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes