210913 David Haller wrote:
Gwenview uses color-management via media-libs/lcms, feh does not.That cb relevant, but I've explored further & have some results.
See "Rendering intent" and "Color profile" under "Advanced"
in Gwenview's configure dialog. HTH.
When I crop a JPG image with Fotoxx or Gwenview,
then view it with Gwenview, the colors remain vivid ;
this is true whether I rename the new version in Gwenview or not.
It's only when I crop a PNG image in Gwenview
& save it in place (ie with the same name), that the colors are faded
& that's only when viewed with Gwenview, not eg with Feh.
So I can avoid the problem either by cropping only with Fotoxx
or by renaming them whenever I do it with Gwenview
or by converting PNGs to JPGs before cropping them.
The bad case does look like a Gwenview bug,
but KDE bugs tend to disappear into the ocean, if reported.
Thanks for the comments. I will try redoing the faded versions,
tho' that will mean getting them from the I/net again.
Any further suggestions re causes of the bad case are welcome.
It's only when I crop a PNG image in Gwenview
& save it in place (ie with the same name), that the colors are faded
& that's only when viewed with Gwenview, not eg with Feh.
The bad case does look like a Gwenview bug,
& in fact, as I had forgotten (grimace), I did submit a bug previously :
KDE Bug 420357 back in April 2020, to which no-one has yet responded.
I've added a comment & we'll see if there's any response this time.
Tibor Nagy of KDE Bugzilla has replied very promptly :
My guess this happens due to botched gamma handling.
Washed out images are a prime symptom of that kind of bugs.
Seems like when a PNG gAMA chunk is present,
Gwenview applies the gamma transform in the opposite direction it
should, thus the washed out images. Seems to be Qt bug, already fixed
in 5.15.x : https://github.com/qt/qtbase/commit/de2c3ccd49cb89e0c6912da3b03705a36ef03946
As you can see from the link above, some coder forgot to invert a value, using 'gamma' when it sb '1/gamma'.
The patch is dated 'June 11', so it make take awhile yet to reach
Gentoo.
On Sun, 19 Sep 2021 00:01:51 -0400, Philip Webb wrote:
The patch is dated 'June 11', so it may take awhile yet to reach Gentoo.5.15.2 is already in testing, which explains why I was unable
to reproduce this in the way it hit you,
but there was still one washed out image I saw.
Meanwhile, the advice has to be don't manipulate PNGs using Gwenview : convert them to JPG first.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 217:44:40 |
Calls: | 6,621 |
Calls today: | 3 |
Files: | 12,171 |
Messages: | 5,317,713 |