Bug 450205

Summary: Gamma not applied correctly to PNG
Product: [Applications] gwenview Reporter: Ancoron <ancoron.luciferis>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.08.1   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Original gradient with default gamma

Description Ancoron 2022-02-14 11:32:12 UTC
Created attachment 146704 [details]
Original gradient with default gamma

SUMMARY
Gamma applied incorrectly.

STEPS TO REPRODUCE
1. Create a gradient (sets gamma by default to 1/2.2): `convert -size 1280x720 -define gradient:vector=32,32,1248,688 gradient:#ff0000-#00ffff gradient.png`
2. Open image `gradient.png` in gwenview

OBSERVED RESULT
Colors are way too bright.


EXPECTED RESULT
Colors are correct.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.04
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
When inverting the gamma value the image is displayed correctly, but metadata is actually wrong and other programs will make the image look wrong: `convert gradient.png -set gamma 2.2 gradient-inverted-gamma.png`
Comment 1 Ancoron 2022-02-14 17:50:37 UTC
Just upgraded the system to check if anything has changed, but no.

gwenview version: 21.12.2

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.10
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Comment 2 2wxsy58236r3 2022-02-15 00:57:58 UTC

*** This bug has been marked as a duplicate of bug 441162 ***