Bug 380448 - Add support for .dds texture files
Summary: Add support for .dds texture files
Status: RESOLVED UPSTREAM
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-02 04:10 UTC by tguen
Modified: 2017-06-08 00:36 UTC (History)
1 user (show)

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 tguen 2017-06-02 04:10:16 UTC
Okular can't open *.dds files, used for textures in many games. Clicking a *.dds file in Dolphin opens Gwenview, but it prints thw error "Gwenview cannot display documents of type image/x-dds.".
Comment 1 Christoph Feck 2017-06-05 22:09:44 UTC
Do you have kimageformats and qt5-imageformats packages installed? Please ask in a forum of your distribution for exact package names.
Comment 2 tguen 2017-06-07 23:25:31 UTC
Yes, both. The description for qt5-imageformats Arch package says it adds support for TIFF, MNG, TGA, WBMP. kimageformats lists several formats, dds not included.

https://api.kde.org/frameworks/kimageformats/html/index.html
Comment 3 Christoph Feck 2017-06-08 00:21:23 UTC
More ideas:

- check /usr/share/kservices5/qimageioplugins/

- try adding image/x-dds to the MimeType list in /usr/share/applications/org.kde.gwenview.desktop

According to http://doc.qt.io/qt-5/qtimageformats-index.html DDS should be supported by Qt.

The DDS loader was removed from kimageformats because of the Qt support, but you still need to have the kimageformats installed so that the .desktop file gets installed.

See https://cgit.kde.org/kimageformats.git/commit/?id=e5fce91de6ef72f15c7d31b16b2494f534c7157c
Comment 4 Christoph Feck 2017-06-08 00:36:18 UTC
Digging deeper, I found https://bugreports.qt.io/browse/QTBUG-59955

If you cannot compile Qt from source, I suggest to ask your distribution to re-enable DDS support in Qt (at the risk of getting bug reports about it).