Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.0
-
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
- relates to
-
QTBUG-42540 QML Image element doesn't use magic bytes for image type identification
- Closed