ImageMagick在centOS安装 ,处理PNG JPG

本文介绍了如何在CentOS系统上卸载旧版ImageMagick,然后通过源码编译安装最新版本,并详细列出安装过程中需要的依赖库,确保支持PNG和JPG格式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

欢迎任何形式的转载--


   You would possible need to compile it from the source with the options to what you

 have misssing:


  1. yum remove ImageMagick
  2. yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
  3. wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.3-5.tar.gz
  4. tar zxvf ImageMagick-6.6.3-5.tar.gz
  5. cd ImageMagick-6.6.3-5
  6. ./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
  7. make clean
  8. make
  9. make install

参考网址:http://serverfault.com/questions/170395/adding-png-jpg-support-to-imagemagick-in-php-on-centos
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值