imagemagick 支持 heic

官网

  1. 安装依赖

yum localinstall -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

 
 yum install tcl-devel.x86_64 libpng-devel.x86_64 libjpeg-devel.x86_64 ghostscript-devel.x86_64 bzip2-devel.x86_64 freetype-devel.x86_64 libtiff-devel.x86_64 libde265  libwebp-devel libde265  libheif*
 
  1. 编译
wget http://www.imagemagick.org/download/ImageMagick-7.0.10-0.tar.gz
tar -zxvf ImageMagick-7.0.10-0.tar.gz
cd  ImageMagick-7.0.10-0

./configure --prefix=/usr/local/imagemagick --with-heic=yes --with-png=yes --with-webp=yes

make 
make install 

  1. test
cd /usr/local/imagemagick


./convert  1.HEIC  1.jpg

你可能感兴趣的:(imagemagick 支持 heic)