Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
WebP: fix colorspace export issue when dithering is enabled
Rasyuqa A. H.207038fc5829
diff --git a/plugins/impex/webp/kis_webp_export.cpp b/plugins/impex/webp/kis_webp_export.cppindex 41b1576cb3..481c17cb86 100644--- a/plugins/impex/webp/kis_webp_export.cpp+++ b/plugins/impex/webp/kis_webp_export.cpp@@ -340,7 +340,7 @@ KisImportExportErrorCode KisWebPExport::convert(KisDocument *document, QIODevice// Convert to sRGB for non-RGBA color modelconst KoColorProfile *imageProfile = (dst->colorSpace()->colorModelId() == RGBAColorModelID)- ? dev->colorSpace()->profile()+ ? dst->colorSpace()->profile(): nullptr;const QImage imageOut = dst->convertToQImage(imageProfile, 0, 0, bounds.width(), bounds.height())@@ -456,7 +456,7 @@ KisImportExportErrorCode KisWebPExport::convert(KisDocument *document, QIODevice// Convert to sRGB for non-RGBA color modelconst KoColorProfile *imageProfile = (dst->colorSpace()->colorModelId() == RGBAColorModelID)- ? document->savingImage()->projection()->colorSpace()->profile()+ ? dst->colorSpace()->profile(): nullptr;const QImage imageOut = dst->convertToQImage(imageProfile, 0, 0, bounds.width(), bounds.height())