linux JMagick和ImageMagick安装
一、下载JMagick和ImageMagick
wget_ http://downloads.jmagick.org/6.4.0/jmagick-6.4.0-src.tar.gz
wget_ http://downloads.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz
二、安装依赖包
yum install libpng
yum install libpng-devel
yum install libjpeg
yum install libjpeg-devel
yum install gd
yum install gd-devel
yum install libtiff
yum install libtiff-devel
三、安装ImageMagick
tar xzvf ImageMagick-6.4.0-0.tar.gz
cd ImageMagick-6.4.0
./configure --prefix=/usr/local/imgtools/JMagick
make
make install
四、安装并配置JMagick
tar xzvf jmagick-6.4.0-src.tar.gz
cd 6.4.0
./configure --with-java-home=/usr/java/default --with-magick-home=/usr/local/imgtools/JMagick
make
make install
# 拷贝libJMagick.so到JRE
cp /home/install/6.4.0/lib/libJMagick-6.4.0.so /usr/java/default//jre/lib/amd64/libJMagick.so
# 拷贝magick-6.4.0.jar到install目录备份
cp /home/install/6.4.0/lib/jmagick-6.4.0.jar /home/install/magick-6.4.0.jar