ALT Linux Bugzilla
– Attachment 18475 Details for
Bug 54254
Не открывает .heic фото с айфона
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
possible patch
krita-libheif-1.19.patch (text/plain), 1.24 KB, created by
Max Pozdeev
on 2025-05-15 23:01:15 MSK
(
hide
)
Description:
possible patch
Filename:
MIME Type:
Creator:
Max Pozdeev
Created:
2025-05-15 23:01:15 MSK
Size:
1.24 KB
patch
obsolete
>diff --git a/krita/plugins/impex/heif/HeifImport.cpp b/krita/plugins/impex/heif/HeifImport.cpp >index 3c1a52cc..7146008b 100644 >--- a/krita/plugins/impex/heif/HeifImport.cpp >+++ b/krita/plugins/impex/heif/HeifImport.cpp >@@ -227,8 +227,19 @@ KisImportExportErrorCode HeifImport::convert(KisDocument *document, QIODevice *i > > heif_color_profile_type profileType = heif_image_handle_get_color_profile_type(handle.get_raw_image_handle()); > >+ heif_colorspace reqModel; >+ heif_chroma reqChroma; >+ heif_image_handle_get_preferred_decoding_colorspace(handle.get_raw_image_handle(), &reqModel, &reqChroma); >+ if (reqModel == heif_colorspace_YCbCr) { >+ reqModel = heif_colorspace_RGB; >+ reqChroma = heif_chroma_444; >+ } >+ else { >+ reqModel = heif_colorspace_undefined; >+ reqChroma = heif_chroma_undefined; >+ } > >- heif::Image heifimage = handle.decode_image(heif_colorspace_undefined, heif_chroma_undefined); >+ heif::Image heifimage = handle.decode_image(reqModel, reqChroma); > heif_colorspace heifModel = heifimage.get_colorspace(); > heif_chroma heifChroma = heifimage.get_chroma_format(); > int luma = handle.get_luma_bits_per_pixel();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54254
:
18440
| 18475