SUMMARY GWenview fails to open XPM1 and XPM2 *.xpm files. STEPS TO REPRODUCE 1. Open XPM1 and XPM2 *.xpm files. 2. Gwenview fails to open valid file. EXPECTED RESULT View XPM1 and XPM2 images. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux x86_64 ArcoLinux B KDE Frameworks Version: 5.67.0 Qt Version: 5.14.1 ADDITIONAL INFORMATION Sample Files: - https://en.wikipedia.org/wiki/X_PixMap#XPM2 - https://en.wikipedia.org/wiki/X_PixMap#XPM You can open both with Gimp. Plain-text human-readable ASCII uncompressed image format should be easy to parse.
The XPM image loader is part of the Qt libraries, it only supports the version XPM3 that is the default version since 1991. https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/image/qxpmhandler.cpp https://en.wikipedia.org/wiki/X_PixMap#XPM3 If you really need to support older versions, I suggest to report this issue directly to Qt developers via https://bugreports.qt.io/ with a test case.