Bug 443735

Summary: Thumbnails for .cbz files does not support .webp, .avif etc
Product: [Applications] dolphin Reporter: Magnus Boman <magunasu.b97>
Component: generalAssignee: Dennis <crap-dennis>
Status: RESOLVED FIXED    
Severity: normal CC: crap-dennis, kfm-devel
Priority: NOR    
Version First Reported In: 21.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: No thumbnail being generated for .cbz
webp works, avif does not

Description Magnus Boman 2021-10-14 17:41:40 UTC
Created attachment 142442 [details]
No thumbnail being generated for .cbz

SUMMARY
When you have a .cbz (and possibly other formats like .epub) with a .webp, .avif and possibly other "exotic" file formats as the only picture, no thumbnail is being made. If a "common" format is also in the archive, it will be shown as thumbnail instead, but in many instances that might be several pages later which renders it useless and misleading. I have qt5-imageformats installed and pictures of those formats do get thumbnails in Dolphin.


STEPS TO REPRODUCE
1. Create a .cbz (a renamed .zip) containing a .webp or .avif image
2. Observe the file in Dolphin
3. Notice its lack of thumbnail

OBSERVED RESULT
No thumbnail or wrong thumbnail being shown, see attachment

EXPECTED RESULT
The first page of the comic being shown as thumbnail

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.12-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: Radeon RX Vega

ADDITIONAL INFORMATION
Comment 1 Magnus Boman 2021-11-13 19:41:06 UTC
Fixed with KDE Frameworks 5.88.0
Comment 2 Dennis 2022-07-27 13:48:58 UTC
Created attachment 150945 [details]
webp works, avif does not

I came across the same problem with avif files inside cbz containers and stumbled upon this bug report. Although it says it was resolved, I still have no thumbnails for containers only having avif files. Testing it with webp, I noticed that it works with here, so it looks like this issue was only partially solved.

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-41-generic (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 1500X Quad-Core Processor
Memory: 15,6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Comment 3 Dennis 2022-07-30 11:13:32 UTC
This has just been fixed in 9f540815

That was a fast fix! I don't know if you saw this post which made you push to fix this, as it seems you faced the same issue on your own, but thank you anyway, Pedro!