Bug 440480 - Images are whitened in Gwenview
Summary: Images are whitened in Gwenview
Status: RESOLVED WORKSFORME
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 21.07.80
Platform: openSUSE Linux
: VHI normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-08-01 09:53 UTC by Ilya Bizyaev
Modified: 2021-10-29 16:12 UTC (History)
6 users (show)

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


Attachments
Test image (984.94 KB, image/png)
2021-08-01 09:54 UTC, Ilya Bizyaev
Details
Comparison (933.63 KB, image/png)
2021-08-01 09:54 UTC, Ilya Bizyaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2021-08-01 09:53:28 UTC
SUMMARY
Since one of the recent updates, some images look too white when displayed in Gwenview. Attached is an example of such image and a screenshot of it displayed in Gwenview and GIMP.

STEPS TO REPRODUCE
1. Download the attached image
2. Open it in Gwenview

OBSERVED RESULT
The images appears much whiter than in other programs (web browsers, showFoto, Okular, GIMP, thumbnails etc.)

EXPECTED RESULT
The image looks the same


SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.3
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Graphics Platform: X11
Graphics Processor: Mesa DRI Intel® UHD Graphics
Comment 1 Ilya Bizyaev 2021-08-01 09:54:07 UTC
Created attachment 140437 [details]
Test image
Comment 2 Ilya Bizyaev 2021-08-01 09:54:54 UTC
Created attachment 140438 [details]
Comparison
Comment 3 Nate Graham 2021-08-02 20:41:53 UTC
Can reproduce with the attached image. But only with that one; I have never seen this happen with any other images.
Comment 4 Janne Kemppainen 2021-08-23 18:26:11 UTC
I can reproduce this issue with any PNG image created by the ImageMagick suite when using its default settings. For example, with ImageMagick installed, type

convert filename test.png

then open test.png in Gwenview, and it will look washed out.
The issue did not happen with Gwenview 21.04.3.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Graphics Platform: X11
Graphics Processor: AMD Radeon ™ RX 480 Graphics

Gwenview version: 21.08.0

Just in case, I currently have ImageMagick version 7.1.0-4 installed, however, I have screenshots taken with it dating back to 2016 that have the same issue, so the version shouldn't matter.
Comment 5 Phillip Carver 2021-08-23 20:43:47 UTC
I am able to reproduce this "whitening" issue with Gwenview with JPGs I open in GIMP and export to PNG with the "save gamma" option selected. I tried a number of (though not all) variations of save options, and the "save gamma" option is the only one that had an effect with regard to the whitening issue.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Graphics Platform: X11
Graphics Processor: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti Rev. A] (rev a1)

Gwenview version: 21.08.0

GIMP version: 2.10.24
Comment 6 Hikmet Altintas 2021-09-18 13:20:04 UTC
I investigate this bug and it seems like it was introduced with the commit: 
ac47787f ("Render raster images by using a copy of a portion of the image", 2021-05-27)

If I just comment out the line 
cmsDoTransform(mDisplayTransform, bytes, bytes, image.width() * image.height());

everything is working again. Although I couldn't find the exact reason of it.
Comment 7 Méven Car 2021-10-29 15:07:41 UTC
I don't reproduce this in X11 with 20.12.3 or in Wayland 21.11.70.
Is it still reproducible for others with more recent versions ?
Comment 8 Janne Kemppainen 2021-10-29 15:57:36 UTC
Seems to have been fixed at some point, I can no longer reproduce it with any images. Currently on Gwenview 21.08.2.
Comment 9 Méven Car 2021-10-29 16:12:44 UTC
So I am marking this as worksforme.
It might be due to a framework or other dependency change.

Please reopen it if the bug should happen again on gwenview 21.08.2 or netx