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
Created attachment 140437 [details] Test image
Created attachment 140438 [details] Comparison
Can reproduce with the attached image. But only with that one; I have never seen this happen with any other images.
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.
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
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.
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 ?
Seems to have been fixed at some point, I can no longer reproduce it with any images. Currently on Gwenview 21.08.2.
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