diff options
author | Remi Collet <remi@remirepo.net> | 2022-01-24 08:25:19 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-01-24 08:25:19 +0100 |
commit | c09a5d3eb272ea98b51cc5225f057cb4a8aa2ab2 (patch) | |
tree | 2c021cd19dfc54f0e034729aa0e005e1ac19c047 /heic-el7.patch | |
parent | 28eaa052f167567bd6e379bc3d64685d051efc8b (diff) |
update to version 6.9.12 patch level 35
add weak dependencies on default fonts
open https://github.com/ImageMagick/ImageMagick/issues/4747
Broken build with old libheif
and revert upstream changes on EL7
Diffstat (limited to 'heic-el7.patch')
-rw-r--r-- | heic-el7.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/heic-el7.patch b/heic-el7.patch new file mode 100644 index 0000000..730bf81 --- /dev/null +++ b/heic-el7.patch @@ -0,0 +1,43 @@ +From 1b89b2b729238758a98c596c256a1d5753fa5670 Mon Sep 17 00:00:00 2001 +From: Cristy <urban-warrior@imagemagick.org> +Date: Wed, 19 Jan 2022 18:40:35 -0500 +Subject: [PATCH] AVIF is supported by the HEIC coder + +--- + coders/heic.c | 18 +++++++----------- + coders/miff.c | 4 ++-- + coders/mpc.c | 7 +++---- + 3 files changed, 12 insertions(+), 17 deletions(-) + +diff --git a/coders/heic.c b/coders/heic.c +index c17ec7848c..29c5fbc0a9 100644 +--- a/coders/heic.c ++++ b/coders/heic.c +@@ -586,20 +586,16 @@ static Image *ReadHEICImage(const ImageInfo *image_info, + */ + static MagickBooleanType IsHEIC(const unsigned char *magick,const size_t length) + { ++#if defined(MAGICKCORE_HEIC_DELEGATE) ++ enum heif_filetype_result ++ heif_filetype; ++ + if (length < 12) + return(MagickFalse); +- if (LocaleNCompare((const char *) magick+4,"ftyp",4) != 0) +- return(MagickFalse); +- if (LocaleNCompare((const char *) magick+8,"avif",4) == 0) +- return(MagickTrue); +- if (LocaleNCompare((const char *) magick+8,"heic",4) == 0) +- return(MagickTrue); +- if (LocaleNCompare((const char *) magick+8,"heix",4) == 0) +- return(MagickTrue); +- if (LocaleNCompare((const char *) magick+8,"mif1",4) == 0) +- return(MagickTrue); +- if (LocaleNCompare((const char *) magick+8,"msf1",4) == 0) ++ heif_filetype=heif_check_filetype(magick,(int) length); ++ if (heif_filetype == heif_filetype_yes_supported) + return(MagickTrue); ++#endif + return(MagickFalse); + } + |