Bug 493273

Summary: Gwenview renders 'zopflipng' reencoded RGB PNGs incorrectly
Product: [Applications] gwenview Reporter: reports_go_brrr <goodaqua>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.08.1   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Test RGB with artifacts
Test BW is fine
Showcase

Description reports_go_brrr 2024-09-17 16:05:56 UTC
Created attachment 173773 [details]
Test RGB with artifacts

SUMMARY
Gwenview struggles with RGB PNGs reencoded by `zopflipng`, though other applications listed below don't have that problem. Black-White PNGs reencoded by `zopflipng` are not affected.
In my case I created theese images in GIMP, but also achieved the same result with reencoding image created in Krita.
Works under X11 and Wayland.

STEPS TO REPRODUCE
1. Compress RGB PNG image through `zopflipng file.png`
2. Open it in Gwenview
3. Zoom it (Ctrl++, Ctrl+-, Ctrl+MouseWheel etc.)

OBSERVED RESULT
Random dots are shown, but ther are not included into picture directly. Firefox, Eye of GNOME (eog), Viewnior, gThumb and others are showing this image correctly, without theese dots, even if you'll zoom closely.

EXPECTED RESULT
I want it work as expected.

SOFTWARE/OS VERSIONS
Zopfli 1.0.3 (zopflipng is in this package)
Operating System: EndeavourOS
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-arch1-2 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Vanilla Gwenview, vanilla KDE Plasma, vanilla EndeavourOS.
Comment 1 reports_go_brrr 2024-09-17 16:06:22 UTC
Created attachment 173774 [details]
Test BW is fine
Comment 2 reports_go_brrr 2024-09-17 16:07:14 UTC
Created attachment 173775 [details]
Showcase