Bug 493831

Summary: Okular Unable to Render AVIF Images Properly, Directly from ZIP Containers
Product: [Applications] okular Reporter: okudono <2kad29>
Component: Image backend componentsAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: major CC: dnovomesky
Priority: NOR    
Version First Reported In: 24.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Test_Material.jpg is inside. follow steps to reproduce

Description okudono 2024-09-29 13:09:41 UTC
Created attachment 174203 [details]
Test_Material.jpg is inside. follow steps to reproduce

SUMMARY:
--------

Okular is unable to render AVIF images directly from within a ZIP container, but it can render them correctly when the images are extracted. This suggests a potential issue with Okular's handling of ZIP containers with AVIF images within them.

STEPS TO REPRODUCE
1. `avifenc Test_Material.jpg Test_Material.avif`
2. zip it through cmdline or from middle click window `Compress > Compress to "Test_Material.zip"`
3. open the zip file with okular and see that the image is being extremely enlarged (vertically)
4. open context window with middle click and "Extract here" then open the folder with okular and it will render the avif image properly.
5. try opening the `Test_Material.zip` that has the avif image in it with MPV and MPV wont have any issues with it.

OBSERVED RESULT

Okular renders an extremely enlarged (vertically) image

EXPECTED RESULT

Okular should render AVIF files without any issues.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch + Plasma 6.1.5
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Comment 1 dnovomesky 2024-10-22 12:09:43 UTC
Can you upload your compressed file and the screenshot what exactly do you see wrong on your side?