Bug 464866

Summary: WebP don't show thumbnails in Recent Documents
Product: [Applications] krita Reporter: Freya Lupen <penguinflyer2222>
Component: File formatsAssignee: amyspark <amy>
Status: RESOLVED FIXED    
Severity: normal CC: amy, griffinvalley
Priority: NOR Keywords: regression
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Freya Lupen 2023-01-26 19:05:54 UTC
SUMMARY
WebP don't show thumbnails in Recent Documents, because KisFileIconCreator uses QImage to create the thumbnails, and QImageReader::supportedImageFormats() isn't reporting .webp as a supported format.
This issue occurs after the update to Qt 5.15, but works on earlier versions of Krita (5.2.x-19d3f923b).

STEPS TO REPRODUCE
1. Open a WebP image.
2. Close the image and check the Recent Documents list.

OBSERVED RESULT
A WebP thumbnail.

EXPECTED RESULT
Missing WebP thumbnail.

SOFTWARE/OS VERSIONS
Krita 5.2.x git hash ee93c0498f.
Qt Version: 5.15.7
Comment 1 wolthera 2023-01-26 19:08:41 UTC
I can confirm with the Krita Version: 5.2.0-prealpha (git 5c98a72) Appimage with Qt 5.15.7
Comment 2 amyspark 2023-02-06 16:26:56 UTC
Found it. The upgrade to Qt 5.15 didn't carry over qtimageformats.