Bug 362388

Summary: Can't open webp files
Product: [Applications] gwenview Reporter: Rafael Linux User <rafael.linux.user>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: arojas, d.matscheko, myriam, nate, rafael.linux.user
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: An webp file example

Description Rafael Linux User 2016-04-27 23:49:12 UTC
Gwenview 4.14.0 pre in KDE 4.14.18 can't open webp images that Chromium/Chrome and Krita can show without problems.


Reproducible: Always

Steps to Reproduce:
1.Click on a webp image
2.Gwenview show a message saying "Loading ‘image_001.webp’ failed
Gwenview cannot display documents of type image/webp."

Actual Results:  
Can't see any webp image

Expected Results:  
To show the image
Comment 1 Rafael Linux User 2016-04-27 23:50:54 UTC
Created attachment 98653 [details]
An webp file example
Comment 2 David Matscheko 2017-05-10 14:10:35 UTC
Gwenview 17.04.0 with KDE Frameworks 5.33.0 and Qt 5.8.0 also can not open webp with Gwenview.

There is/was a library "/usr/lib/kde4/plugins/imageformats/kimg_webp.so" but there is no library for webp in "/usr/lib/qt/plugins/imageformats/".

Even the KImageFormats plugin for QImage does not include this format.

So it seems to me that there is just no support for webp in Qt 5.
Comment 3 Antonio Rojas 2017-05-10 14:14:34 UTC
(In reply to David Matscheko from comment #2)
> Gwenview 17.04.0 with KDE Frameworks 5.33.0 and Qt 5.8.0 also can not open
> webp with Gwenview.
> 
> There is/was a library "/usr/lib/kde4/plugins/imageformats/kimg_webp.so" but
> there is no library for webp in "/usr/lib/qt/plugins/imageformats/".
> 
> Even the KImageFormats plugin for QImage does not include this format.
> 
> So it seems to me that there is just no support for webp in Qt 5.

You need to install qtimageformats
Comment 4 David Matscheko 2017-05-10 14:24:26 UTC
(In reply to Antonio Rojas from comment #3)
> (In reply to David Matscheko from comment #2)
> > [...]
> > Even the KImageFormats plugin for QImage does not include this format.
> > 
> > So it seems to me that there is just no support for webp in Qt 5.
> 
> You need to install qtimageformats

Thanks a lot. I totally missed that qtimageformats and kimageformats are not the same packages and thought it could be related to this bug report.
Comment 5 Nate Graham 2017-11-09 19:58:27 UTC
Sounds like this should be reported to your distro, asking them to mark qtimageformats as a required dependency of Gwenview.