https://bugs.kde.org/show_bug.cgi?id=493493
Bug ID: 493493 Summary: Color profile not found when importing gradient on some OS, leading to wrong colors Classification: Applications Product: krita Version: 5.2.3 Platform: Ubuntu OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Resource Management Assignee: krita-bugs-n...@kde.org Reporter: rmoerlan...@gmail.com Target Milestone: --- Created attachment 173968 --> https://bugs.kde.org/attachment.cgi?id=173968&action=edit test gradient that shows up as red when the color profile is not used, and green when it is. SUMMARY I created gradients in the ACEScg-elle-V4-g10 color space, that is shipped with Krita. It turns out that on MacOS and with a Linux AppImage, the color profile is not found and the embedded fallback sRGB colors are used. On Windows, it works regardless of being an installed version or a portable version in a random directory. I expected the color profile to be found in all cases (as it is shipped) and perhaps this is a bug? STEPS TO REPRODUCE I have created a 'coal mine canary' gradient, that is defined as solid green in the ACEScg color space, but has sRGB Red as its fallback color. Therefore, importing this gradient and observing the color of the resulting thumbnail tells us whether the color profile was used or not. Steps in Windows 1. Install or use portable version of Krita 2. Import the gradient with the resource manager. 3. Gradient should show up as green for both the installed version and the portable version -> This makes me believe that the 'local' field embedded in the SVG file is parsed and the correct color profile is found in the search path of Krita Steps in MacOS 1. Install Krita 2. Import the gradient with the resource manager. 3. Gradient likely shows up as red -> This makes me believe that the correct color profile is *not* found in the search path of Krita 4. Adding the field xlink:href="/Applications/Krita.app/Contents/share/color/icc/krita/ACEScg-elle-V4-g10.icc" to the color-profile tag and re-importing the gradient likely makes it show up in green -> Is the path to the *.icc files added to the search path on MacOS? Steps in Linux 1. Install Krita AppImage 2. Import the gradient with the resource manager. 3. Gradient likely shows up as red 4. Adding the field xlink:href="/Applications/Krita.app/Contents/share/color/icc/krita/ACEScg-elle-V4-g10.icc" to the color-profile tag and re-importing the gradient likely makes it show up in green OBSERVED RESULT MacOS and Linux AppImage: gradients fall back to sRGB colors despite using an ICC profile that ships with Krita, unless the path is hardcoded into the SVG gradient. Windows: gradients are imported correctly, regardless of the absolute location of the ICC profile, but still relative to the Krita main folder. EXPECTED RESULT All OS/platforms should import the gradients correctly SOFTWARE/OS VERSIONS Windows: 10 macOS: not sure (test performed by user of krita-artists.org, see below) Linux: Ubuntu 22.04 LTS (and first reported by other user at krita-artist.org, see below) Qt Version: 5.15.7 ADDITIONAL INFORMATION Discussion on krita-artists.org: https://krita-artists.org/t/interference-based-gradients/102328/5 -- You are receiving this mail because: You are watching all bug changes.