Redhat / CentOS: ImageMagick Installation

by Vivek Gite on February 25, 2009 · 2 comments

How do I install ImageMagick under CentOS / Fedora / RHEL / Redhat Linux for displaying and manipulating images via perl, php, blog and other web based apps?

ImageMagick is a simple program for any type of image manipulation on most systems. It can be used for thumbnail generation or captcha generation and so on.

Installation of ImageMagick

Type the following command as a root user to install imagemagick with perl and php support.

  • ImageMagick - It is an image display and manipulation tool for the X Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF, and Photo CD image formats. It can resize, rotate, sharpen, color reduce, or add special effects to an image, and when finished you can either save the completed work in the original format or a different one. ImageMagick also includes command line programs for creating animated or transparent .gifs, creating composite images, creating thumbnail images, and more.
  • ImageMagick-perl - Install ImageMagick-perl package if you want to use any perl scripts that use ImageMagick.

Type the following command as the root user:

# yum install ImageMagick ImageMagick-perl
Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.usonyx.net
 * base: mirror.usonyx.net
 * extras: mirror.usonyx.net
 * updates: mirror.usonyx.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick.i386 0:6.2.8.0-4.el5_1.1 set to be updated
--> Processing Dependency: libbz2.so.1 for package: ImageMagick
--> Processing Dependency: libgdk_pixbuf-2.0.so.0 for package: ImageMagick
=============================================================================================================================================================
 Package                                    Arch                         Version                                         Repository                     Size
=============================================================================================================================================================
Installing:
 ImageMagick                                i386                         6.2.8.0-4.el5_1.1                               base                          3.3 M
 ImageMagick                                x86_64                       6.2.8.0-4.el5_1.1                               base                          3.3 M
 ImageMagick-perl                           x86_64                       6.2.8.0-4.el5_1.1                               base                          147 k
Installing for dependencies:
 GConf2                                     i386                         2.14.0-9.el5                                    base                          1.5 M
 GConf2                                     x86_64                       2.14.0-9.el5                                    base                          1.5 M
 ORBit2                                     i386                         2.14.3-5.el5                                    base                          252 k
 ORBit2                                     x86_64                       2.14.3-5.el5                                    base                          263 k
 alsa-lib                                   x86_64                       1.0.17-1.el5                                    base                          414 k
...
....
..
Transaction Summary
=============================================================================================================================================================
Install     77 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total size: 56 M
Total download size: 46 M
Is this ok [y/N]:

The above will install ImageMagick and its dependencies automatically.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 2 comments… read them below or add one }

1 Kurt September 5, 2011

Thanks!

Reply

2 Yel November 10, 2011

Thank you!! :)

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 14 + 2 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: