Home  >  Article  >  Operation and Maintenance  >  How to quickly install GraphicsMagick on CentOS

How to quickly install GraphicsMagick on CentOS

藏色散人
藏色散人forward
2021-09-09 15:25:552101browse

The following tutorial column of centos will introduce to you how to quickly install GraphicsMagick on CentOS. I hope it will be helpful to friends in need!

CentOS installation GraphicsMagick

Install related dependencies

yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel

Download and unzip

wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.29.tar.gz
tar -zxvf GraphicsMagick-1.3.29.tar.gz

Compile and install

cd /usr/local/GraphicsMagick-1.3.29
./configure --prefix=/usr/local/GraphicsMagick-1.3.29
make
make install

Set environment variables

echo 'PATH=$PATH:$GMAGICK_HOME/bin' > /etc/profile.d/graphicsmagick.sh && source /etc/profile

Check whether the installation is successful

gm version

View the supported image list

gm convert -list formats

Recommended: "centos tutorial

The above is the detailed content of How to quickly install GraphicsMagick on CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete