libheif (heic) and ImageMagick
Hi,
Server details: CentOS 7.9.2009 (cPanel: 106.0 (build 14)
I've managed to install libde265 and also libheif:
# ldconfig -p |grep libde265
libde265.so.0 (libc6,x86-64) => /lib64/libde265.so.0
# ldconfig -p |grep libheif
libheif.so.1 (libc6,x86-64) => /lib64/libheif.so.1
# rpm -qa |grep -i ImageMagick
ImageMagick6-libs-6.9.12.75-1.el7.remi.x86_64
ImageMagick-devel-6.9.10.68-6.el7_9.x86_64
ImageMagick6-heic-6.9.12.75-1.el7.remi.x86_64
ImageMagick-6.9.10.68-6.el7_9.x86_64
And I've installed php extension via:
/opt/cpanel/ea-php80/root/bin/pecl install imagick
(it's successfully installed - with phpinfo() showing the details).
But unfortunately, it does not seem to recognize the heic image format.
Any idea why or how to solve this?
Many thanks!
-
Hey there! Can you let me know what specifically isn't being recognized and where you are seeing the error? Once I know that I may be ablet to get you more details. 0 -
According to the docs, the following command is run: convert -version It should show: Delegates (built-in): bzlib cairo heic fontconfig freetype gslib jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff wmf x xml zlib BUT when I tried it, "heic" is not in the list of Delegates. 0 -
Thanks for the additional details. It's important to note that the libheif tools are not something that is natively supported by cPanel, so it may not properly integrate into our system. I setup a new AlmaLinux 8 system, installed ImageMagick, enabled the rpmfusion repository, installed libheif. My output from "convert -version" is this: Delegates (built-in): bzlib cairo djvu fontconfig freetype gslib gvc jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zlib
so that seems to be the same as your configuration. I believe the issue is that the distribution of ImageMagick doesn't have the option to compile in support for libheif, so you'd need to create a custom RPM in order to perform that work. It would likely be best to create a feature request using the link in my signature so we could add that to the cPanel tools. If you can do that, or if you'd like me to do that for you, I can bring that up during next week's feature meeting. It might be best to create a feature request using the link in my signature so our team can review this and get it applied to a future version. If you can create that request, or if you'd like me to do that for you, I can bring it up with the team during next week's features meeting.0 -
Hi CPRex, Thanks for the follow-up, appreciate it. Yes, if you could bring this up with the team next week, that would be really great. I'm sure there are countless others who would love to see this feature in cPanel. Best regards. 0 -
> and I'll bring it up with the team! Thanks CPRex! Maybe suggest using Imagick7 instead of 6 if possible. 0 -
I'm sharing what I did on an AlmaLinux v8 server.
Thank you Remi Repo https://blog.remirepo.net/pages/Config-en
Install the remi-release-8
dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm -y dnf update dnf repolist
Install ImageMagick-heic
Use the remi repository to get and install ImageMagick HEIC package which will then build support for reading HEIC, HEIF and AVIF formats.
dnf --enablerepo=remi install ImageMagick-heic
0
Please sign in to leave a comment.
Comments
7 comments