centos7 編譯安裝imagemagick7.1

tochenwei發表於2024-04-04

參考

https://blog.csdn.net/chen_cong_520/article/details/134638717

#cd /usr/local
#wget https://www.nasm.us/pub/nasm/releasebuilds/2.16/nasm-2.16.tar.gz
#tar -zxvf nasm-2.16.tar.gz 
#cd nasm-2.16
#./autogen.sh && ./configure && make && make install
#cd ../
#pwd
#wget https://github.com/strukturag/libheif/releases/download/v1.15.2/libheif-1.15.2.tar.gz
#tar -zxvf libheif-1.15.2.tar.gz
#cd libheif-1.15.2
#./autogen.sh && ./configure && make && make install

#PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib64/pkgconfig:/usr/local/lib/pkgconfig
#export PKG_CONFIG_PATH
#LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib64:/usr/local/lib:/usr/local/lib64
#export LD_LIBRARY_PATH
#heif-info

#cd ../

#wget https://imagemagick.org/archive/ImageMagick-7.1.1-29.tar.gz

#tar -zxvf ImageMagick-7.1.1-29.tar.gz 
#cd ImageMagick-7.1.1-29

#yum install -y libwebp-tools
#./configure --prefix=/usr/local/imagemagick && make && make install
#convert -version
 

#rm /usr/bin/convert
#ln -s /usr/local/imagemagick/bin/magick /usr/bin/convert
#convert -version
#convert -list format
convert -list format命令檢視支援的格式裡面有HEIF、HEIC等蘋果ios支援的圖片格式

相關文章