linux下安装GraphicsMagick

系统为CentOS

1. 下载GraphicsMagick的文件GraphicsMagick-1.3.22.tar.gz
2. 将文件复制到/usr/local目录下
3. 解压GraphicsMagick-1.3.22.tar.gz文件,tar –zxvf GraphicsMagick-1.3.22.tar.gz
4. 在GraphicsMagick-1.3.22的目录里面配置,
./configure --prefix=/usr/local/GraphicsMagick-1.3.12
5. 安装,执行make 和 make all
6. 在/etc/profile中添加配置
export GMAGICK_HOME="/usr/local/GraphicsMagick-1.3.22"
export PATH="$GMAGICK_HOME/bin:$PATH"
LD_LIBARY_PATH=$GMAGICK_HOME/lib:$LD_LIBARY_PATH
export LD_LIBARY_PATH
然后保存配置:source /etc/profile
7. 测试是否安装成功
gm convert –list formats 若出现下面的:
Format L Mode Description
--------------------------------------------------------------------------------
3FR S r-- Hasselblad Photo RAW
8BIM P rw- Photoshop resource format
8BIMTEXT P rw- Photoshop resource text format
8BIMWTEXT P rw- Photoshop resource wide text format

………………
VICAR S rw- VICAR rasterfile format
VID S rw+ Visual Image Directory
VIFF S rw+ Khoros Visualization image
VST S rw+ Truevision Targa image
WBMP S rw- Wireless Bitmap (level 0) image
WPG S r-- Word Perfect Graphics
X3F S r-- Foveon X3 (Sigma/Polaroid) RAW
XBM S rw- X Windows system bitmap (black/white)
XC P r-- Constant image uniform color
XCF S r-- GIMP image
XMP P rw- Adobe XML metadata
XPM S rw- X Windows system pixmap (color)
XV S rw+ Khoros Visualization image
Y S rw+ Raw yellow samples
YUV S rw- CCIR 601 4:1:1 or 4:2:2 (8-bit only)
则安装成功。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值