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++
Explicitly request libheif about the chroma of the RGB space
Dmitry Kazakov0b852994866c
diff --git a/plugins/impex/heif/HeifImport.cpp b/plugins/impex/heif/HeifImport.cppindex a557acc4a1..2b942431c8 100644--- a/plugins/impex/heif/HeifImport.cpp+++ b/plugins/impex/heif/HeifImport.cpp@@ -364,7 +364,7 @@ KisImportExportErrorCode HeifImport::convert(KisDocument *document, QIODevice *iheifChroma = heif_chroma_monochrome;} else if (heifModel == heif_colorspace_YCbCr) {// we do not support importing YCrBr spaces directly- heifimage = handle.decode_image(heif_colorspace_RGB, heif_chroma_undefined);+ heifimage = handle.decode_image(heif_colorspace_RGB, heif_chroma_444);colorModel = RGBAColorModelID.id();heifModel = heifimage.get_colorspace();heifChroma = heifimage.get_chroma_format();