1 Download the installation package
wget http://jaist.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.23/ Graphicsmagick-1.3.23.tar.gz
2 The dependent components required to install GraphicsMagick need to be explained that these components are not required, but you are limited in functionality.
[[email protected] GraphicsMagick-1.3.23] #yum install libpng* libjpeg*
[[email protected] GraphicsMagick-1.3.23] #yum install freetype-devel glib2-devel cairo-devel-y
3 compiling the installation
[email protected] bin]#/configure--prefix=/usr/local/graphicsmagick-1.3.23
[[email protected] bin]# make && make install
4 Verifying the interception of thumbnails
Switch to the installation directory
[email protected] bin]# pwd
/usr/local/graphicsmagick-1.3.23/bin
[Email protected] bin]#/gm convert eznwc1ykcx-aayzhaamz0ouvnls798.jpg-resize 300x200 out.jpg
Import Environment variables:
[email protected] bin]# Vi/etc/profile
gmagick_home=/usr/local/graphicsmagick-1.3.23
Export Gmagick_home
Export Path=${path}:${gmagick_home}/bin
5 common error handling
GM Convert:no Decode delegate
for the This image format
generally you do not install the corresponding format encoding caused, such as you jpg you need to install the Libjpeg library file, if it is a PNG file error need to install Pnglib library file
can see my website GraphicsMagick generated thumbnail effect: http://lockbur.com
This article is from "an upright official www.lockbur.com" blog, please be sure to keep this source http://lockbur.blog.51cto.com/10014969/1719478
Graphicsmagic Installation Notes on CentOS