source: general/genutils/imagemagick.xml@ bcec98e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since bcec98e was bcec98e, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Remove redundancy in imagemagick instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9504 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 18.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY imagemagick-patch-version "10">
8 <!-- Not sure what to do here as ImageMagick is one of the fastest-moving
9 targets in all of open-source. One solution is to always use the last
10 version of a specific major-minor from the 'legacy' subdirectory of
11 the path in these URL's. Otherwise these links are broken within days
12 after updates :-( Unfortunately, versions always roll on after patch
13 version 10, whether or not significant changes occur, and it takes
14 time before versions migrate to legacy/ -->
15 <!ENTITY imagemagick-download-http " ">
16 <!ENTITY imagemagick-download-ftp "ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-&imagemagick-version;-&imagemagick-patch-version;.tar.xz">
17 <!ENTITY imagemagick-md5sum "6bf001ae206bffe77693732e4e886532">
18 <!ENTITY imagemagick-size "7.3 MB">
19 <!ENTITY imagemagick-buildsize "256 MB typical (additional 69 MB if you run the Image::Magick demo)">
20 <!ENTITY imagemagick-time "4.9 SBU typical (Additional 0.4 SBU to run the test suite)">
21]>
22
23<!-- Editors: It is highly unlikely that the buildsize (disk space used) will
24 be less than the figure shown above. Unless you have installed *all* the
25 delegate dependencies, you will see a smaller buildsize, but what is
26 currently listed above is the space one would require if all the
27 dependencies are installed, which is what we want.
28
29 Marked as 'typical' because nobody builds ALL the optional extras [ken]
30
31 Also, please look over the output from the configure command for any
32 additional dependencies that need to be listed, as ImageMagick is
33 constantly adding additional features and dependencies. -->
34
35
36<sect1 id="imagemagick"
37xreflabel="ImageMagick-&imagemagick-version;-&imagemagick-patch-version;">
38 <?dbhtml filename="imagemagick.html"?>
39
40 <sect1info>
41 <othername>$LastChangedBy$</othername>
42 <date>$Date$</date>
43 </sect1info>
44
45 <title>ImageMagick-&imagemagick-version;-&imagemagick-patch-version;</title>
46
47 <indexterm zone="imagemagick">
48 <primary sortas="a-ImageMagick">ImageMagick</primary>
49 </indexterm>
50
51 <sect2 role="package">
52 <title>Introduction to ImageMagick</title>
53
54 <para><application>ImageMagick</application> is a collection of tools and
55 libraries to read, write, and manipulate an image in various image formats.
56 Image processing operations are available from the command line. Bindings
57 to various programming languages are also available.</para>
58
59 &lfs70_checked;
60
61 <bridgehead renderas="sect3">Package Information</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>Download (HTTP): <ulink url="&imagemagick-download-http;"/></para>
65 </listitem>
66 <listitem>
67 <para>Download (FTP): <ulink url="&imagemagick-download-ftp;"/></para>
68 </listitem>
69 <listitem>
70 <para>Download MD5 sum: &imagemagick-md5sum;</para>
71 </listitem>
72 <listitem>
73 <para>Download size: &imagemagick-size;</para>
74 </listitem>
75 <listitem>
76 <para>Estimated disk space required: &imagemagick-buildsize;</para>
77 </listitem>
78 <listitem>
79 <para>Estimated build time: &imagemagick-time;</para>
80 </listitem>
81 </itemizedlist>
82
83 <para>The <application>ImageMagick</application> source releases are
84 updated frequently and the version shown above may no longer be available
85 from the download locations. You can download a more recent version and use
86 the existing BLFS instructions to install it. Chances are that it will
87 work just fine, but this has not been tested by the BLFS team. If the
88 package version shown above is not available from the locations shown
89 above, or from the <filename class='directory'>legacy/</filename> directory
90 at <literal>ftp.ImageMagick.org/pub/ImageMagick</literal> you can download it
91 from the BLFS package server at
92 <ulink
93 url="&sources-anduin-http;/i/ImageMagick-&imagemagick-version;-&imagemagick-patch-version;.tar.xz"/>.
94 </para>
95
96 <bridgehead renderas="sect3">ImageMagick Dependencies</bridgehead>
97
98 <bridgehead renderas="sect4">Recommended</bridgehead>
99 <para role="recommended"><xref linkend="x-window-system"/></para>
100
101 <para>The optional dependencies listed below should be installed if you
102 need support for the specific format or the conversion tool the dependency
103 provides. Many of the dependencies' capabilities and uses are described in
104 the <quote>MAGICK DELEGATES</quote> section of the
105 <filename>README.txt</filename> file located in the source tree. Additional
106 information about the dependencies can be found in the
107 <filename>Install-unix.txt</filename> file located in the source tree as
108 well as issuing the <command>./configure --help</command> command. A
109 summary of this information, as well as some additional notes can be viewed
110 on-line at <ulink
111 url="http://www.imagemagick.org/script/advanced-unix-installation.php"/>.</para>
112
113 <bridgehead renderas="sect4">Optional System Utilities</bridgehead>
114 <para role="optional"><xref linkend="pkgconfig"/>,
115 <xref linkend="cups"/> or <xref linkend="LPRng"/> (or any other print
116 utility that provides an <command>lpr</command> command),
117 <ulink url="http://ufraw.sourceforge.net/">ufraw</ulink> (only for raw formats listed in
118 <filename>www/formats.html</filename>),
119 <ulink url="http://dmalloc.com/">Dmalloc</ulink>,
120 <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink>,
121 <ulink url="http://www.gsp.com/support/virtual/email/pgp/">PGP</ulink>
122 or <xref linkend="gnupg"/> or <xref linkend="gnupg2"/>
123 (you'll have to do some hacking to use <application>GnuPG</application>),
124 <xref linkend="sane"/>, and
125 <xref linkend="wget"/>
126 </para>
127
128 <bridgehead renderas="sect4">Optional Graphics Libraries</bridgehead>
129 <para role="optional"><ulink url="http://corefonts.sourceforge.net/">corefonts</ulink>,
130 <ulink url="http://www.i3a.org/i_flashpix.html">FlashPIX</ulink> (or
131 <ulink url="ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/libfpx-1.3.0-1.tar.bz2">
132 FlashPIX library</ulink>),
133 <xref linkend="freetype2"/>,
134 <xref linkend="jasper"/>,
135 <ulink url="http://www.cl.cam.ac.uk/~mgk25/jbigkit/">JBIG-KIT</ulink>,
136 <xref linkend="lcms"/> or
137 <ulink url="http://sourceforge.net/projects/lcms/files/">lcms2</ulink>,
138 <xref linkend="libexif"/>,
139 <xref linkend="libjpeg"/>,
140 <xref linkend="libpng"/>,
141 <xref linkend="librsvg"/>,
142 <xref linkend="libtiff"/>,
143 <xref linkend="pango"/>,
144 <ulink url="http://www.webmproject.org/code/">libwebp</ulink>, and
145 <xref linkend="libxml2"/>,
146 <ulink url="http://djvu.sourceforge.net/">DjVuLibre</ulink>, and
147 <ulink url="http://www.agocg.ac.uk/train/cgm/ralcgm.htm">RALCGM</ulink>
148 </para>
149
150 <bridgehead renderas="sect4">Optional Graphics Utilities</bridgehead>
151 <para role="optional"><!-- <xref linkend="espgs"/> or --><xref linkend="gs"/>,
152 <ulink url="http://www.artifex.com/downloads/">GhostPCL</ulink>,
153 <xref linkend="gimp"/>,
154 <ulink url="http://www.gnuplot.info/">Gnuplot</ulink>,
155 <xref linkend="graphviz"/>,
156 <ulink url="http://www.povray.org/">POV-Ray</ulink>, and
157 <ulink url="http://radsite.lbl.gov/radiance/HOME.html">Radiance</ulink>
158 </para>
159
160 <bridgehead renderas="sect4">Optional Conversion Tools</bridgehead>
161 <para role="optional"><ulink url="http://autotrace.sourceforge.net/">AutoTrace</ulink>,
162 <xref linkend="enscript"/>,
163 <ulink url="http://www.gnu.org/software/hp2xx/">hp2xx</ulink>,
164 <ulink url="http://user.it.uu.se/~jan/html2ps.html">html2ps</ulink>,
165 <ulink url="http://wvware.sourceforge.net/">libwmf</ulink>,
166 <ulink url="http://www.mpeg.org/MSSG/">MPEG-2 Video Codec</ulink>,
167 <ulink url="http://netpbm.sourceforge.net/">Netpbm</ulink>,
168 <!--<xref linkend="tetex"/> or--> <xref linkend="texlive"/>,
169 <ulink url="http://www.xfig.org/">Transfig</ulink>,
170 <ulink url="http://txt2html.sourceforge.net/">txt2html</ulink>
171 (requires Perl Module
172 <ulink url="http://cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar.gz">
173 Getopt::ArgvFile</ulink>), and
174 <ulink url="http://www.cs.utah.edu/gdc/projects/urt/">Utah Raster Toolkit</ulink>
175 <!-- url="http://www.funet.fi/pub/graphics/packages/Utah-Raster-Toolkit/rel3/urt-3.1b.mlg.tar.gz"> -->
176 (or <ulink url="http://www.mcmurchy.com/urt/urt-3.1b.tar.gz">URT-3.1b</ulink>)
177 </para>
178
179 <para condition="html" role="usernotes">User Notes:
180 <ulink url="&blfs-wiki;/imagemagick"/></para>
181
182 </sect2>
183
184 <sect2 role="installation">
185 <title>Installation of ImageMagick</title>
186
187 <para>Install <application>Imagemagick</application> by running the following
188 commands:</para>
189
190<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
191 --with-modules &amp;&amp;
192make</userinput></screen>
193
194 <para>If you wish to build the <application>PerlMagick</application>
195 <application>perl</application> module, use the following commands:</para>
196
197<screen><userinput>cd PerlMagick &amp;&amp;
198perl Makefile.PL &amp;&amp;
199make &amp;&amp;
200cd ..</userinput></screen>
201
202 <para>To test the results, issue: <command>make check</command>. Note that
203 many of the tests require a working <application>ghostscript</application>
204 and that most of the validate-*.sh tests fail when run from
205 <command>make check</command> although they can be successfully run individually
206 by <command>chmod +x tests/common.sh &amp;&amp;
207 srcdir=$PWD VALIDATE=$PWD/tests/validate-compare.sh ;# and so forth</command>
208 </para>
209
210 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
211
212<screen role="root"><userinput>make install</userinput></screen>
213
214 <para>And, if you built PerlMagick, still as the
215 <systemitem class="username">root</systemitem> user:</para>
216
217<screen role="root"><userinput>make -C PerlMagick install</userinput></screen>
218
219 <!-- Commenting this out for now as it is redundant to information
220 that has already been presented, or is in the 'command explanations'
221 section below.
222 <sect3>
223 <title>Additional Configure Options</title>
224
225 <para>There are additional switches that can be passed to
226 <application>ImageMagick</application> to customize the installation to
227 your needs. See <filename>advanced-unix-installation.html</filename> in
228 the <filename class='directory'>www</filename> directory.</para>
229
230 </sect3>
231 -->
232
233 </sect2>
234
235 <sect2 role="commands">
236 <title>Command Explanations</title>
237
238 <para><parameter>--sysconfdir=/etc</parameter>: Put the directory of xml (and
239 .icc) files at <filename class='directory'>/etc/ImageMagick</filename> instead of
240 <filename class='directory'>/usr/etc/ImageMagick</filename>.</para>
241
242 <para><parameter>--with-modules</parameter>: Enables support for dynamically
243 loadable modules.</para>
244
245 <para><option>--with-gslib=/usr/lib</option>: Enables support to use the
246 Ghostscript shared library.</para>
247
248 <para><option>--with-fpx</option>: Enables support to use the FlashPix
249 library.</para>
250
251 <para><option>--with-windows-font-dir=<replaceable>&lt;Some/Directory&gt;</replaceable></option>:
252 This option specifies the directory where the Windows CoreFonts are
253 installed.</para>
254
255 <para>The options and parameters listed above are the only ones you should
256 have to pass to the <command>configure</command> script to activate all the
257 delegate dependencies. All other dependencies will be automatically
258 detected and utilized in the build if they are installed.</para>
259
260 <para><option>--disable-static</option>: This switch prevents
261 the static libraries being built.</para>
262
263 </sect2>
264
265 <sect2 role="content">
266 <title>Contents</title>
267
268 <segmentedlist>
269 <segtitle>Installed Programs</segtitle>
270 <segtitle>Installed Libraries</segtitle>
271 <segtitle>Installed Directories</segtitle>
272
273 <seglistitem>
274 <seg>animate, compare, composite, conjure, convert, display,
275 identify, import, Magick++-config, Magick-config, MagickCore-config,
276 MagickWand-config, mogrify, montage, stream, and Wand-config</seg>
277 <seg>libMagick.{so,a}, libMagickCore.{so,a} libMagick++.{so,a},
278 libMagickWand.{so,a}, optionally the Magick.so Perl module, and
279 numerous plugin modules</seg>
280 <seg>/usr/include/Magick++, /usr/include/magick, /usr/include/wand,
281 /usr/lib/ImageMagick-&imagemagick-version;,
282 /usr/lib/perl5/site_perl/&lfs-perl-version;/i686-linux/auto/Image/Magick,
283 /usr/share/ImageMagick-&imagemagick-version; and
284 /usr/share/doc/ImageMagick-&imagemagick-version;</seg>
285 </seglistitem>
286 </segmentedlist>
287
288 <variablelist>
289 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
290 <?dbfo list-presentation="list"?>
291 <?dbhtml list-presentation="table"?>
292
293 <varlistentry id="animate">
294 <term><command>animate</command></term>
295 <listitem>
296 <para>animates a sequence of images.</para>
297 <indexterm zone="imagemagick animate">
298 <primary sortas="b-animate">animate</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="compare">
304 <term><command>compare</command></term>
305 <listitem>
306 <para>compares an image to a reconstructed image.</para>
307 <indexterm zone="imagemagick compare">
308 <primary sortas="b-compare">compare</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="composite">
314 <term><command>composite</command></term>
315 <listitem>
316 <para>composites various images into the given base image.</para>
317 <indexterm zone="imagemagick composite">
318 <primary sortas="b-composite">composite</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="conjure">
324 <term><command>conjure</command></term>
325 <listitem>
326 <para>processes a MSL script to create an image.</para>
327 <indexterm zone="imagemagick conjure">
328 <primary sortas="b-conjure">conjure</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="convert">
334 <term><command>convert</command></term>
335 <listitem>
336 <para>converts image(s) from one format to another.</para>
337 <indexterm zone="imagemagick convert">
338 <primary sortas="b-convert">convert</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="display">
344 <term><command>display</command></term>
345 <listitem>
346 <para>displays an image.</para>
347 <indexterm zone="imagemagick display">
348 <primary sortas="b-display">display</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="identify">
354 <term><command>identify</command></term>
355 <listitem>
356 <para>describes the format and characteristics of an image file.</para>
357 <indexterm zone="imagemagick identify">
358 <primary sortas="b-identify">identify</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 <varlistentry id="import">
364 <term><command>import</command></term>
365 <listitem>
366 <para>captures an X window.</para>
367 <indexterm zone="imagemagick import">
368 <primary sortas="b-import">import</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="magick-config">
374 <term><command>Magick-config</command> and
375 <command>Magick++-config, MagickCore-config, MagickWand-config</command></term>
376 <listitem>
377 <para>show information about the installed versions of the
378 <application>ImageMagick</application> Magick++, MagickCore and MagickWand libraries.</para>
379 <indexterm zone="imagemagick magick-config">
380 <primary sortas="b-Magick-config">Magick-config</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="mogrify">
386 <term><command>mogrify</command></term>
387 <listitem>
388 <para>transforms an image.</para>
389 <indexterm zone="imagemagick mogrify">
390 <primary sortas="b-mogrify">mogrify</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="montage">
396 <term><command>montage</command></term>
397 <listitem>
398 <para>composites various images into a new image.</para>
399 <indexterm zone="imagemagick montage">
400 <primary sortas="b-montage">montage</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 <varlistentry id="stream">
406 <term><command>stream</command></term>
407 <listitem>
408 <para>streams one or more pixel components of an image or
409 portion of the image to your choice of storage formats.</para>
410 <indexterm zone="imagemagick stream">
411 <primary sortas="b-stream">stream</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="wand-config">
417 <term><command>Wand-config</command></term>
418 <listitem>
419 <para>shows the options required to use the Wand library.</para>
420 <indexterm zone="imagemagick wand-config">
421 <primary sortas="b-Wand-config">Wand-config</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="perlmagick">
427 <term><filename class='libraryfile'>Image::Magick</filename></term>
428 <listitem>
429 <para>allows the reading, manipulation and writing of a large number of
430 image file formats using the <application>ImageMagick</application>
431 library. Run <command>make</command> in the
432 <filename class='directory'>PerlMagick/demo</filename> directory of
433 the package source tree after the package is installed to see a nice
434 demo of the module's capabilities.</para>
435 <indexterm zone="imagemagick perlmagick">
436 <primary sortas="g-Image-Magick">Image::Magick</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 </variablelist>
442
443 </sect2>
444
445</sect1>
Note: See TracBrowser for help on using the repository browser.