Bug 501358

Summary: No option to disable ICC profile embedding when saving WebP files
Product: [Applications] krita Reporter: nihah63096
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: halla
Priority: NOR    
Version First Reported In: 5.2.9   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description nihah63096 2025-03-11 14:00:14 UTC
Summary: No option to disable ICC profile embedding when saving WebP files
Version: 5.2.9
Platform: Debian Trixie (testing)
OS: Linux

Description:
When saving a WebP file in Krita 5.2.9, the ICC profile (e.g., sRGB-elle-V2-srgbtrc.icc, 9080 bytes) or any other is embedded automatically, even for empty images, resulting in files >9 KB. For JPG, there is an "Embed ICC profile" checkbox in the export dialog, but for WebP this option is missing. This increases file size unnecessarily and lacks consistency with other formats.

Steps to Reproduce:
1. Create a new 100x100 transparent canvas.
2. Save as WebP (File → Save As → WebP).
3. Check file size (e.g., 9 KB) and ICC profile (via `magick identify -verbose`).

Actual Result:
File size >9 KB due to embedded ICC profile, no option to disable it.

Expected Result:
An option in the WebP export dialog to disable ICC embedding, similar to JPG, resulting in smaller files (e.g., <1 KB for empty images).

Additional Info:
- In older versions (e.g., 5.1.5 on Debian Bookworm), empty WebP files were smaller, suggesting a regression.
- Workaround: `magick convert input.webp -strip output.webp` removes the profile.
Comment 1 Dmitry Kazakov 2025-06-30 17:15:07 UTC
Git commit 7cff86886f9c0b442ed92fd23930ac21c983129b by Dmitry Kazakov, on behalf of Rasyuqa A. H..
Committed on 30/06/2025 at 17:13.
Pushed by dkazakov into branch 'master'.

WebP: Add option to force sRGB convert and ICC profile embedding

M  +4    -0    plugins/impex/webp/kis_wdg_options_webp.cpp
M  +27   -0    plugins/impex/webp/kis_wdg_options_webp.ui
M  +38   -6    plugins/impex/webp/kis_webp_export.cpp

https://invent.kde.org/graphics/krita/-/commit/7cff86886f9c0b442ed92fd23930ac21c983129b