Bug 418866 - GWenview fails to open *.xpm files
Summary: GWenview fails to open *.xpm files
Status: RESOLVED UPSTREAM
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-15 11:20 UTC by juan carlos
Modified: 2020-04-09 19:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description juan carlos 2020-03-15 11:20:03 UTC
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.
Comment 1 Christoph Feck 2020-04-09 19:21:13 UTC
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.