ImageMagick用法

安装了imageMagick,但是却无法处理png图片,把解决方法记录一下。
1、输入如下命令
convert -list configure

image.png

或如下命令

Version: ImageMagick 6.8.2-9 2013-02-11 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: jng jpeg ps xml zlib```
可以看到Delegates里没有png的
2、删除原来ImageMagick,删除方法
```方法1、yum erase ImageMagick```
```方法2、yum --skip-broken remove ImageMagick```
以上来种方法均删除无效,使用了第三种方法,进入到ImageMagick安装包下,运行如下命令
```方法3、cd ImageMagick-6.8.2-9
./configure
make uninstall```
3、重新安装

yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.3-5.tar.gz
tar zxvf ImageMagick-6.6.3-5.tar.gz
cd ImageMagick-6.6.3-5
./configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
make clean
make
make install

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容