centos安装ImageMagick

1. 在http://www.imagemagick.org/download/上找到合适的版本,然后下载,我选择的版本是6.8.9:

    wget  http://www.imagemagick.org/download/ImageMagick-6.8.9-1.tar.gz 

 2. 解压刚才下载的文件:

 tar xvf  ImageMagick-6.8.9-1.tar.gz

3.进入解压目录:

cd ImageMagick-6.8.9-1

4.检查配置:

./configure

如果发现没有安装jpeg(如下图),则必须先安装jpeg

5.安装jpeg:

yum install libjpeg* libpng* freetype* gd*

6.安装ImageMagick

 make install

输入convert -resize 100x100 src.jpg des.jpg  执行成功,表明安装成功



For other systems, create (or choose) a directory to install the package into and change to that directory, for example:

cd $HOME

Next, extract the contents of the package. For example:

tar xvzf ImageMagick.tar.gz

Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:

$ export MAGICK_HOME="$HOME/ImageMagick-7.0.7"

If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:

export PATH="$MAGICK_HOME/bin:$PATH

On Linux and Solaris machines add $MAGICK_HOME/lib to the LD_LIBRARY_PATH environment variable:

LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MAGICK_HOME/lib
export LD_LIBRARY_PATH

Finally, to verify ImageMagick is working properly, type the following on the command line:



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值