Install and deploy ImageMagick on centos7
# cat /etc/redhat-releaseCentOS Linux release 7.5.1804 (Core)
Install Basic Package
# yum install -y libjpeg* libpng* libtiff* libungif* freetype zlib
Introduction to ImageMagick
ImageMagick is a software suite used to create, edit, combine, or convert bitmap images. It can read and write images in various formats, such as GIF, JPEG, PNG, postscript, And Tiff. We can also use ImageMagick to resize, flip, mirror, rotate, twist, cut and convert images, adjust image colors, and apply various effects, you can also draw text, lines, polygon, oval, and SEL curves.
ImageMagick generally comes from the command line. We can also use it in any programming language, such as magick. This article will help you install ImageMagick on centos and RHEL servers.
Download ImageMagick and download the appropriate ImageMagick version.
ImageMagick:
# wget http://www.imagemagick.org/download/ImageMagick-7.0.8-14.tar.gz
Install ImageMagick
# mkdir -p /opt/ImageMagick# cd /tmp# tar -zxf ImageMagick-7.0.8-14.tar.gz -C /opt/ImageMagick# cd /opt/ImageMagick/ImageMagick-7.0.8-14# ./configure# make && make install
Test whether the installation is successful
# wget -O /tmp/google_test.jpg https://ws1.sinaimg.cn/large/006tNbRwgy1fwq90vzdgaj31b60dqmye.jpg# convert google_test.jpg google_test.png
View supported formats
identify -list format
References
Official ImageMagick website
ImageMagick
ImageMagick + PHP + apahe
Install and deploy ImageMagick on centos7