(dv) 3.5:Install ImageMagick
- This page was last modified on May 10, 2012, at 10:35.
From (mt) Community Wiki
End of Life Warning
This service has a pending End of Life. Please move to a current service as soon as possible. For more information, please see: (dv) Dedicated-Virtual 4.0: Migration Information.
Contents |
ImageMagick® is a software suite able to create, edit, and compose bitmap images. It can read, convert, and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear, and transform images; to adjust image colors, apply various special effects; or to draw text, lines, polygons, ellipses and Bézier curves.
Results
You will install ImageMagick on your (dv) Dedicated-Virtual Server 3.5.
Requirements
- root or sudo SSH access:
- Developer Tools installed: (dv):Install the Developer Tools
- YUM installed: (dv) 3.5:Install YUM
Instructions
-
Log into your server via SSH with root or sudo access (replace example.com with your own domain):
ssh root@example.com -
Install python-iniparse, an INI parser for the Python language:
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
- Use YUM to install ImageMagick. If you haven't installed YUM, see the requirements section above. This installation will likely prompt you to install several other dependencies of ImageMagick. Type "y" and then hit Enter to accept the dependencies. The installation will take a few minutes to complete.
yum install ImageMagick
-
Verify that ImageMagick is installed:
convert -version
You should see the following output, which indicates a successful installation:
Version: ImageMagick 6.2.8 04/17/08 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
The actual command for ImageMagick is convert.
Congratulations. You now have ImageMagick installed on your (dv) server.
ImageMagick is third-party software and is not supported by (mt) Media Temple.
See these articles for information on installing the PHP extension imagick:
- http://www.matteomattei.com/en/install-imagemagick-with-php-imagick-extension-on-centos
- You will need to temporarily remount your /tmp and /var/tmp directories with exec permissions to install a PECL extension like imagick. See Getting around 'noexec' issues with /tmp for assistance.
If you're having trouble with encrypted PDF files, see this article: