Bug 450205 - Gamma not applied correctly to PNG
Summary: Gamma not applied correctly to PNG
Status: RESOLVED DUPLICATE of bug 441162
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.08.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-14 11:32 UTC by Ancoron
Modified: 2022-02-15 00:57 UTC (History)
0 users

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


Attachments
Original gradient with default gamma (95.58 KB, image/png)
2022-02-14 11:32 UTC, Ancoron
Details

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