Introduction to ImageMagick

ImageMagick is a collection of tools and libraries to read, write, and manipulate an image in various image formats. Image processing operations are available from the command line. Bindings for Perl and C++ are also available.

This package is known to build and work properly using an LFS-7.6 platform.

Package Information

  • Download (FTP):

  • Download MD5 sum: 763db53af657867e067cc74d6a532f49

  • Download size: 7.3 MB

  • Estimated disk space required: 148 MB (with typical dependencies, additional 29 MB to run the test suite, reputedly 450 MB with all dependencies)

  • Estimated build time: 2.4 SBU (typical build - additional 5.4 SBU to run the test suite and 12.6 SBU to run the validation suite)



The ImageMagick source releases are updated frequently and the version shown above may no longer be available from the download locations. You can download a more recent version and use the existing BLFS instructions to install it. Chances are that it will work just fine, but this has not been tested by the BLFS team. If the package version shown above is not available from the locations shown above, or from the legacy/ directory at you can download it from the BLFS package server at

ImageMagick Dependencies


The optional dependencies listed below should be installed if you need support for the specific format or the conversion tool the dependency provides. Many of the dependencies' capabilities and uses are described in the “MAGICK DELEGATES” section of the README.txt file located in the source tree. Additional information about the dependencies can be found in the Install-unix.txt file located in the source tree as well as issuing the ./configure --help command. A summary of this information, as well as some additional notes can be viewed on-line at

Optional System Utilities

Cups-1.7.5, cURL-7.37.1, FFmpeg-2.3.3, p7zip-9.20.1 (LZMA), SANE-1.0.24, Wget-1.15, xdg-utils-1.1.0-rc2, xterm-310, Dmalloc, Electric Fence, FFTW, PGP or GnuPG-2.0.26 (you'll have to do some hacking to use GnuPG), Profiles, and ufraw (for raw formats listed in www/formats.html)

Optional Graphics Libraries

JasPer-1.900.1, Little CMS-1.19 or Little CMS-2.6, libexif-0.6.21, libjpeg-turbo-1.3.1, libpng-1.6.13, librsvg-2.40.3, LibTIFF-4.0.3, libwebp-0.4.1, Pango-1.36.7, DjVuLibre, FlashPIX (libfpx), JBIG-KIT, libgxps, Liquid Rescale, OpenEXR, OpenJPEG 2, and RALCGM (or ralcgm)

Optional Graphics Utilities

ghostscript-9.14, Gimp-2.8.14, Graphviz-2.38.0, Inkscape-0.48.5, Blender, corefonts, DejaVu fonts, GhostPCL, Gnuplot, POV-Ray, and Radiance

Optional Conversion Tools

Enscript-1.6.6, texlive-20140525, AutoTrace, GeoExpress Command Line Utilities, AKA MrSID Utilities (binary package), hp2xx, html2ps, libwmf, UniConvertor, and Utah Raster Toolkit (or URT-3.1b)

User Notes:

Installation of ImageMagick

Install ImageMagick by running the following commands:

./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --enable-hdri     \
            --with-modules    \
            --with-perl       \
            --disable-static  &&

Now, as the root user:

make install

To test the installation, issue: make check. For a more comprehensive test, run the ImageMagick validation suite, also after the package is installed. Note that the EPS, PS, and PDF tests require a working Ghostscript. One test needs "Helvetica" from "Standard Fonts" which are optionally installed in ghostscript-9.14.

Command Explanations

--enable-hdri: Enables building of a high dynamic range version of ImageMagick.

--with-modules: Enables support for dynamically loadable modules.

--with-perl: Enables building and installing of PerlMagick.

--disable-static: Prevents the static libraries being built and installed.

--with-gslib: Enables support to use the Ghostscript shared library.

--with-rsvg: Enables support to use the librsvg library.

--with-autotrace: Enables support to use the Autotrace library.

--with-wmf: Enables support to use the libwmf library.

--with-gvc: Enables support to use GraphViz.

--with-windows-font-dir= <Some/Directory>: This option specifies the directory where the Windows CoreFonts are installed.

--with-dejavu-font-dir= <Some/Directory>: This option specifies the directory where the DejaVu fonts are installed.

The options and parameters listed above are the only ones you should have to pass to the configure script to activate all the delegate dependencies. All other dependencies will be automatically detected and utilized in the build if they are installed.


Installed Programs: animate, compare, composite, conjure, convert, display, identify, import, Magick-config, Magick++-config, MagickCore-config, MagickWand-config, mogrify, montage, stream, and Wand-config
Installed Libraries:,,, /usr/lib/perl5/site_perl/<5.x.y>/<arch-linux>/auto/Image/Magick/, and /usr/lib/perl5/site_perl/<5.x.y>/<arch-linux>/auto/Image/Magick/Q16HDRI/
Installed Directories: /etc/ImageMagick-6, /usr/include/ImageMagick-6, /usr/lib/ImageMagick-6.8.9, /usr/lib/perl5/site_perl/<5.x.y>/<arch-linux>/auto/Image/Magick, /usr/lib/perl5/site_perl/<5.x.y>/<arch-linux>/Image/Magick, /usr/share/ImageMagick-6, and /usr/share/doc/ImageMagick-6

Short Descriptions


animates a sequence of images.


compares an image to a reconstructed image.


composites various images into the given base image.


processes a MSL script to create an image.


converts image(s) from one format to another.


displays an image.


describes the format and characteristics of an image file.


captures an X window.


show information about the installed versions of the ImageMagick libraries.


transforms an image.


composites various images into a new image.


streams one or more pixel components of an image or portion of the image to your choice of storage formats.


shows the options required to use the Wand library.


allows the reading, manipulation and writing of a large number of image file formats using the ImageMagick library. Run make in the PerlMagick/demo directory of the package source tree after the package is installed to see a nice demo of the module's capabilities.

Last updated on 2014-09-17 21:56:07 -0700