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.
Download (FTP): ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.7.3-10.tar.xz
Download MD5 sum: 6bf001ae206bffe77693732e4e886532
Download size: 7.3 MB
Estimated disk space required: 256 MB typical (additional 69 MB if you run the Image::Magick demo)
Estimated build time: 4.9 SBU typical (Additional 0.4 SBU to run the test 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 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.
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.
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
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
GPL Ghostscript-9.04, GhostPCL, GIMP-2.6.11, Gnuplot, Graphviz-2.26.3, POV-Ray, and Radiance
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
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
--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=
: This
option specifies the directory where the Windows CoreFonts are
installed.
<Some/Directory>
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.
Last updated on 2011-12-11 23:49:52 +0000