注意:请使用源码安装,因为这样能保证所有存储库都安装到
First,enter the imagemagick site to download the source files https://download.imagemagick.org/archive
查看当前最新的版本
wget http://www.imagemagick.org/download/ImageMagick-xxxxx.tar.gz
安装所需要的依赖包
sudo apt-get install libssl-dev make gcc automake autoconf libncurses5-dev
sudo apt-get install libmagickcore-dev libmagickwand-dev
正式安装Imagemagick,首先解压下载的压缩包
tar xvf ImageMagick-xxxxx.tar.gz
cd /进入解压目录
./configure
sudo make install
1. 检查是否安装成功
convert -version
2. 检查命令转换图片测试
convert sample.jpg ou.png
修正配置
sudo ldconfig /usr/local/lib
检查 convert 存储库列表
convert -list configure
在这里插入图片描述