Bug 493273 - Gwenview renders 'zopflipng' reencoded RGB PNGs incorrectly
Summary: Gwenview renders 'zopflipng' reencoded RGB PNGs incorrectly
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.08.1
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-17 16:05 UTC by reports_go_brrr
Modified: 2024-09-17 16:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Test RGB with artifacts (2.99 KB, image/png)
2024-09-17 16:05 UTC, reports_go_brrr
Details
Test BW is fine (2.00 KB, image/png)
2024-09-17 16:06 UTC, reports_go_brrr
Details
Showcase (199.85 KB, image/png)
2024-09-17 16:07 UTC, reports_go_brrr
Details

Note You need to log in before you can comment on or make changes to this bug.
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