summaryrefslogtreecommitdiff
path: root/src/nsimage.m
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2021-11-26 12:54:07 +0000
committerAlan Third <alan@idiocy.org>2021-12-22 20:48:19 +0000
commitec1312d76a6bb9b4011ab66adad1614a31747af8 (patch)
tree1c66b5c6d0ce11638edc363a372ade5ba8500d33 /src/nsimage.m
parentab0d7a2b83fbb97788efb3ad1cd5e3b0ed10f7f4 (diff)
downloademacs-ec1312d76a6bb9b4011ab66adad1614a31747af8.tar.gz
Add native HEIC support on macOS (bug#51381)
* lisp/image.el (image-type-header-regexps): (image-type-file-name-regexps): (image-type-auto-detectable): Add auto-detect code for heic. * src/image.c (syms_of_image): Add heic as an image type under NS. * src/nsimage.m (ns_can_use_native_image_api): Add heic to list of possible image types in the native image support lookup.
Diffstat (limited to 'src/nsimage.m')
-rw-r--r--src/nsimage.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index dd2bb3b0d7b..98efc9c6c08 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -76,6 +76,8 @@ ns_can_use_native_image_api (Lisp_Object type)
imageType = @"public.tiff";
else if (EQ (type, Qsvg))
imageType = @"public.svg-image";
+ else if (EQ (type, Qheic))
+ imageType = @"public.heic";
/* NSImage also supports a host of other types such as PDF and BMP,
but we don't yet support these in image.c. */