Graphicsmagic Installation Notes on CentOS

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.