ImageMagick-6.7.3-10

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 to various programming languages are also available.

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

Package Information

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 ftp.ImageMagick.org/pub/ImageMagick you can download it from the BLFS package server at http://anduin.linuxfromscratch.org/sources/BLFS/svn/i/ImageMagick-6.7.3-10.tar.xz.

ImageMagick Dependencies

Recommended

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 http://www.imagemagick.org/script/advanced-unix-installation.php.

Optional System Utilities

pkg-config-0.26, Cups-1.5.0 or LPRng-3.8.B (or any other print utility that provides an lpr command), ufraw (only for raw formats listed in www/formats.html), Dmalloc, Electric Fence, PGP or GnuPG-1.4.11 or GnuPG-2.0.18 (you'll have to do some hacking to use GnuPG), SANE-1.0.19, and Wget-1.13.4

Optional Graphics Libraries

corefonts, FlashPIX (or FlashPIX library), FreeType-2.4.8, JasPer-1.900.1, JBIG-KIT, little cms-1.19 or lcms2, libexif-0.6.19, libjpeg-8c, libpng-1.5.7, librsvg-2.26.3, LibTIFF-4.0.0, Pango-1.29.4, libwebp, and libxml2-2.7.8, DjVuLibre, and RALCGM

Optional Graphics Utilities

GPL Ghostscript-9.04, GhostPCL, GIMP-2.6.11, Gnuplot, Graphviz-2.26.3, POV-Ray, and Radiance

Optional Conversion Tools

AutoTrace, Enscript-1.6.4, hp2xx, html2ps, libwmf, MPEG-2 Video Codec, Netpbm, TeX Live-20110705, Transfig, txt2html (requires Perl Module Getopt::ArgvFile), and Utah Raster Toolkit (or URT-3.1b)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/imagemagick

Installation of ImageMagick

Install Imagemagick by running the following commands:

./configure --prefix=/usr --sysconfdir=/etc \
  --with-modules &&
make

If you wish to build the PerlMagick perl module, use the following commands:

cd PerlMagick &&
perl Makefile.PL &&
make &&
cd ..

To test the results, issue: make check. Note that many of the tests require a working ghostscript and that most of the validate-*.sh tests fail when run from make check although they can be successfully run individually by chmod +x tests/common.sh && srcdir=$PWD VALIDATE=$PWD/tests/validate-compare.sh ;# and so forth

Now, as the root user:

make install

And then, as the root user:

make install

And, if you built PerlMagick, still as the root user:

make -C PerlMagick install

Command Explanations

--sysconfdir=/etc: Put the directory of xml (and .icc) files at /etc/ImageMagick instead of /usr/etc/ImageMagick.

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

--with-gslib=/usr/lib: Enables support to use the Ghostscript shared library.

--with-fpx: Enables support to use the FlashPix library.

--with-windows-font-dir=<Some/Directory>: This option specifies the directory where the Windows CoreFonts 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.

--disable-static: This switch prevents the static libraries being built.

Contents

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: libMagick.{so,a}, libMagickCore.{so,a} libMagick++.{so,a}, libMagickWand.{so,a}, optionally the Magick.so Perl module, and numerous plugin modules
Installed Directories: /usr/include/Magick++, /usr/include/magick, /usr/include/wand, /usr/lib/ImageMagick-6.7.3, /usr/lib/perl5/site_perl/5.12.1/i686-linux/auto/Image/Magick, /usr/share/ImageMagick-6.7.3 and /usr/share/doc/ImageMagick-6.7.3

Short Descriptions

animate

animates a sequence of images.

compare

compares an image to a reconstructed image.

composite

composites various images into the given base image.

conjure

processes a MSL script to create an image.

convert

converts image(s) from one format to another.

display

displays an image.

identify

describes the format and characteristics of an image file.

import

captures an X window.

Magick-config and Magick++-config, MagickCore-config, MagickWand-config

show information about the installed versions of the ImageMagick Magick++, MagickCore and MagickWand libraries.

mogrify

transforms an image.

montage

composites various images into a new image.

stream

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

Wand-config

shows the options required to use the Wand library.

Image::Magick

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 2011-12-11 23:49:52 +0000