Bug 477219

Summary: ICC profiles applied incorrectly when saving to WebP
Product: [Applications] krita Reporter: replicable+kde
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.2.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A photo of a red bench, with an ICC profile

Description replicable+kde 2023-11-19 04:32:54 UTC
Created attachment 163282 [details]
A photo of a red bench, with an ICC profile

SUMMARY
Files with ICC profiles are not exported correctly when saving to WebP.


STEPS TO REPRODUCE
1. Open benchexport.webp in Krita
2. File > Save as... > benchexport2.webp
3. Close and reopen benchexport2.webp

OBSERVED RESULT
The bench turns blue.

EXPECTED RESULT
The bench should stay red.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
This is similar to a bug I found in GIMP: https://gitlab.gnome.org/GNOME/gimp/-/issues/9553
Comment 1 wolthera 2023-12-12 12:56:05 UTC
Git commit 69b11ce46fc7af4386a5c08353d3bfdf61c72c31 by Wolthera van Hövell, on behalf of Rasyuqa A. H..
Committed on 12/12/2023 at 13:55.
Pushed by woltherav into branch 'master'.

WebP: properly export color profile on RGBA model

M  +12   -2    plugins/impex/webp/kis_webp_export.cpp

https://invent.kde.org/graphics/krita/-/commit/69b11ce46fc7af4386a5c08353d3bfdf61c72c31
Comment 2 wolthera 2023-12-12 12:57:44 UTC
Git commit 2e2b6f4d8ab44232691a1f307e51a813fe285bf7 by Wolthera van Hövell tot Westerflier, on behalf of Rasyuqa A. H..
Committed on 12/12/2023 at 13:57.
Pushed by woltherav into branch 'krita/5.2'.

WebP: properly export color profile on RGBA model

M  +12   -2    plugins/impex/webp/kis_webp_export.cpp

https://invent.kde.org/graphics/krita/-/commit/2e2b6f4d8ab44232691a1f307e51a813fe285bf7