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

How to quickly install GraphicsMagick on CentOS

藏色散人
Release: 2021-09-09 15:27:40
forward
2147 people have browsed it

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
Copy after login

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
Copy after login

Compile and install

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

Set environment variables

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

Check whether the installation is successful

gm version
Copy after login

View the supported image list

gm convert -list formats
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template