source: general/genutils/imagemagick.xml@ cbb2f68

12.1 ken/TL2024 lazarus plabs/newcss python3.11 rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since cbb2f68 was 048e89d, checked in by Pierre Labastie <pierre.labastie@…>, 8 months ago

Archive lcms

  • Property mode set to 100644
File size: 22.3 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 "15">
8
9 <!ENTITY imagemagick-download-http "https://www.imagemagick.org/archive/releases/ImageMagick-&imagemagick-version;-&imagemagick-patch-version;.tar.xz">
10 <!ENTITY imagemagick-download-ftp " ">
11 <!ENTITY imagemagick-md5sum "14dc2057465df350005311b4ae3649b5">
12 <!ENTITY imagemagick-size "9.7 MB">
13 <!ENTITY imagemagick-buildsize "164 MB (with typical dependencies; add 31 MB for checks)">
14 <!ENTITY imagemagick-time "0.8 SBU (with typical dependencies; add 0.8 SBU for checks, both using parallelism=4)">
15]>
16
17<!-- Editors: It is highly unlikely that the buildsize (disk space used) will
18 be less than the figure shown above. Unless you have installed *all* the
19 delegate dependencies, you will see a smaller buildsize, but what is
20 currently listed above is the space one would require if all the
21 dependencies available in the book are installed.
22
23 Marked as 'typical' because nobody builds ALL the optional extras [ken]
24
25 [bdubbs] I do; at least the internal ones. I still got only 141 MB.
26
27 [pierre 2017-02-14, v7.0.4-8]. I did too, and got 184 MB. I added the
28 all the corresponding switches to configure, that may make a difference.
29 All 6733 tests passed.
30
31 Saved the "full" 450MB as a comment - feel free to update this iff you
32 do build all dependencies, it's probably a lot bigger now.
33
34 [bdubbs] Just removed it. I don't think it adds anything.
35
36 [ken] Comparing 7.0.10-27 to 7.0.10-57 on the same machine: for -27 my
37 timings and space matched the book (well, make check was marginally
38 faster on this machine), but for -57 the compiled source, installed
39 files and extra space for make check were all much smaller.
40
41 Also, please look over the output from the configure command for any
42 additional dependencies that need to be listed, as ImageMagick is
43 constantly adding additional features and dependencies. Or diff the
44 configure script against the previous version.
45
46 For those of us who touch this infrequently:
47 DPS/dpsXclient is from apple so not relevant to linux builds
48 GVC is part of Graphviz and documented in the explanations
49 iLQR is Liquid Rescale
50 ufraw-batch (ufraw) is unmaintained and does not build with current exiv2 -->
51
52<sect1 id="imagemagick" xreflabel="ImageMagick-&imagemagick-version;-&imagemagick-patch-version;">
53 <?dbhtml filename="imagemagick.html"?>
54
55
56 <title>ImageMagick-&imagemagick-version;-&imagemagick-patch-version;</title>
57
58 <indexterm zone="imagemagick">
59 <primary sortas="a-ImageMagick">ImageMagick</primary>
60 </indexterm>
61
62 <sect2 role="package">
63 <title>Introduction to ImageMagick</title>
64
65 <para>
66 <application>ImageMagick</application> is a collection of tools and
67 libraries to read, write, and manipulate an image in various image
68 formats. Image processing operations are available from the command line.
69 Bindings for Perl and C++ are also available.
70 </para>
71
72 &lfs120_checked;
73
74 <bridgehead renderas="sect3">Package Information</bridgehead>
75 <itemizedlist spacing="compact">
76 <listitem>
77 <para>
78 Download (HTTP): <ulink url="&imagemagick-download-http;"/></para>
79 </listitem>
80 <listitem>
81 <para>
82 Download (FTP): <ulink url="&imagemagick-download-ftp;"/></para>
83 </listitem>
84 <listitem>
85 <para>
86 Download MD5 sum: &imagemagick-md5sum;</para>
87 </listitem>
88 <listitem>
89 <para>
90 Download size: &imagemagick-size;</para>
91 </listitem>
92 <listitem>
93 <para>
94 Estimated disk space required: &imagemagick-buildsize;</para>
95 </listitem>
96 <listitem>
97 <para>
98 Estimated build time: &imagemagick-time;</para>
99 </listitem>
100 </itemizedlist>
101
102 <note>
103 <para>
104 The <application>ImageMagick</application> source releases are updated
105 frequently and the version shown above may no longer be available from
106 the download locations. You can download a more recent version and use
107 the existing BLFS instructions to install it. Chances are that it will
108 work just fine, but this has not been tested by the BLFS team. If the
109 package version shown above is not available from the locations shown
110 above, you can download it from the BLFS package server at Oregon State
111 University: <ulink url="https://ftp.osuosl.org/pub/blfs/conglomeration/ImageMagick/"/>.
112 </para>
113 </note>
114
115 <bridgehead renderas="sect3">ImageMagick Dependencies</bridgehead>
116
117 <bridgehead renderas="sect4">Recommended</bridgehead>
118 <para role="recommended">
119 <xref linkend="xorg7-lib"/>
120 </para>
121
122 <para>
123 The optional dependencies listed below should be installed if you need
124 support for the specific format or the conversion tool the dependency
125 provides. <!-- No such section in 7.1.0-4
126 Many of the dependencies' capabilities and uses are described in
127 the <quote>MAGICK DELEGATES</quote> section of the
128 <filename>README.txt</filename> file located in the source tree. -->
129 Additional information about the dependencies can be found in the
130 <filename>Install-unix.txt</filename> file located in the source tree as
131 well as issuing the <command>./configure --help</command> command. A
132 summary of this information, as well as some additional notes can be
133 viewed on-line at <ulink
134 url="https://imagemagick.org/script/install-source.php"/>.
135 </para>
136
137 <bridgehead renderas="sect4">Optional System Utilities</bridgehead>
138 <para role="optional">
139 Clang from <xref linkend="llvm"/>,
140 <xref linkend="cups"/>,
141 <xref linkend="curl"/>,
142 <xref linkend="ffmpeg"/>,
143 <xref linkend="fftw"/>,
144 <xref linkend="p7zip"/> (LZMA),
145 <xref linkend="sane"/>,
146 <xref linkend="wget"/>,
147 <xref linkend="xdg-utils"/>,
148 <xref linkend="xterm2"/>,
149 <ulink url="https://dmalloc.com/">Dmalloc</ulink>,
150 <ulink url="https://linux.softpedia.com/get/Programming/Debuggers/Electric-Fence-3305.shtml/">Electric Fence</ulink> and
151 <ulink url="https://www.openpgp.org/about/">PGP</ulink> or
152 <xref linkend="gnupg2"/>
153 (you'll have to do some hacking to use <application>GnuPG</application>),
154 <ulink url="https://imagemagick.org/archive/delegates/">Profiles</ulink>
155 </para>
156
157 <bridgehead renderas="sect4">Optional Graphics Libraries</bridgehead>
158 <para role="optional">
159 <xref linkend="jasper"/>,
160 <xref linkend="lcms2"/>,
161 <!-- although libexif may have been used in the past, I can find no
162 evidence that it has been used in imagemagick-7. ken
163 <xref linkend="libexif"/>,-->
164 <xref linkend="libgxps"/>,
165 <xref linkend="libjpeg"/>,
166 <xref linkend="libpng"/>,
167 <xref linkend="libraw"/> (for dng files, needs the thread-safe libraw_r),
168 <xref linkend="librsvg"/>,
169 <xref linkend="libtiff"/>,
170 <xref linkend="libwebp"/>,
171 <xref linkend="openjpeg2"/>,
172 <xref linkend="pango"/>,
173 <ulink url="https://djvu.sourceforge.net/">DjVuLibre</ulink>,
174 <ulink url="https://imagemagick.org/archive/delegates/">
175 FlashPIX (libfpx)</ulink>,
176 <ulink url="https://github.com/FLIF-hub/FLIF/releases">FLIF</ulink>,
177 <ulink url="https://www.cl.cam.ac.uk/~mgk25/jbigkit/">JBIG-KIT</ulink>,
178 <!--<ulink url="&gnome-download-http;/libgxps/">libgxps</ulink>,-->
179 <ulink url="https://github.com/strukturag/libheif/">libheif</ulink> with
180 <ulink url="https://github.com/strukturag/libde265/">libde265</ulink>
181 (both needed if converting macOS heic images),
182 <ulink url="https://github.com/libjxl/libjxl/">libjxl</ulink>,
183 <ulink url="https://github.com/HOST-Oman/libraqm/">libraqm</ulink>,
184 <ulink url="http://liblqr.wikidot.com/en:download-page">Liquid Rescale</ulink>,
185 <ulink url="https://www.openexr.com/">OpenEXR</ulink>, and
186 <ulink url="http://www.agocg.ac.uk/train/cgm/ralcgm.htm">RALCGM</ulink>
187 (or <ulink url="http://www.mcmurchy.com/ralcgm/ralcgm-3.51.tar.gz">ralcgm</ulink>)
188 </para>
189
190 <bridgehead renderas="sect4">Optional Graphics Utilities</bridgehead>
191 <para role="optional">
192 <xref linkend="dejavu-fonts"/>,
193 <xref linkend="gs"/>,
194 <xref linkend="gimp"/>,
195 <xref linkend="graphviz"/>,
196 <xref linkend="inkscape"/>,
197 <ulink url="https://www.blender.org/">Blender</ulink>,
198 <ulink url="https://corefonts.sourceforge.net/">corefonts</ulink>,
199 <ulink url="https://ghostscript.com/releases/gpcldnld.html">GhostPCL</ulink>,
200 <ulink url="http://www.gnuplot.info/">Gnuplot</ulink>,
201 <ulink url="https://www.povray.org/">POV-Ray</ulink>, and
202 <ulink url="https://www.radiance-online.org/">Radiance</ulink>
203 </para>
204
205 <bridgehead renderas="sect4">Optional Conversion Tools</bridgehead>
206 <para role="optional">
207 <xref linkend="enscript"/>,
208 <xref linkend="potrace"/>,
209 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
210 <ulink url="https://autotrace.sourceforge.net/">AutoTrace</ulink>,
211 <ulink url="https://www.extensis.com/">
212 GeoExpress Command Line Utilities, AKA MrSID Utilities (binary package)</ulink>,
213 <ulink url="https://www.gnu.org/software/hp2xx/">hp2xx</ulink>,
214 <!-- not accessible
215 <ulink url="https://user.it.uu.se/~jan/html2ps.html">html2ps</ulink>,
216 -->
217 <ulink url="https://wvware.sourceforge.net/">libwmf</ulink>,
218 <ulink url="https://sk1project.net/uc2/">
219 UniConvertor</ulink>,
220 <!-- ufraw-batch was a delegate program, the delegate library coders/dng.so
221 is used if librar_r is present, ufraw now ftbfs with exiv2-0.28, and IM-7.1.1
222 in any case (if no libraw) invokes it to ask for a temp png file, but then
223 tries to open the temp file using a ppm suffix, which of course fails.
224 <ulink url="https://ufraw.sourceforge.net/">ufraw</ulink> (for dng files,
225 see
226 <ulink url="https://imagemagick.org/script/formats.php">
227 https://imagemagick.org/script/formats.php</ulink> for some special switches)
228 -->
229 and
230 <ulink url="https://www.cs.utah.edu/gdc/projects/urt/">Utah Raster Toolkit</ulink>
231 (or <ulink url="http://www.mcmurchy.com/urt/urt-3.1b.tar.gz">URT-3.1b</ulink>)
232 </para>
233
234 <para condition="html" role="usernotes">Editor Notes:
235 <ulink url="&blfs-wiki;/imagemagick"/></para>
236
237 </sect2>
238
239 <sect2 role="installation">
240 <title>Installation of ImageMagick</title>
241
242 <para>
243 Install <application>ImageMagick</application> by running the following
244 commands:
245 </para>
246
247<screen><userinput>./configure --prefix=/usr \
248 --sysconfdir=/etc \
249 --enable-hdri \
250 --with-modules \
251 --with-perl \
252 --disable-static &amp;&amp;
253make</userinput></screen>
254
255 <para>
256 Now, as the <systemitem class="username">root</systemitem> user:
257 </para>
258
259<screen role="root"><userinput>make DOCUMENTATION_PATH=/usr/share/doc/imagemagick-&imagemagick-version; install</userinput></screen>
260
261 <para>
262 To test the installation, issue: <command>make check</command>.
263 <!-- seems to have been dropped A more
264 comprehensive test is the <application>ImageMagick</application>
265 validation suite. If <command>make check</command> has not been executed,
266 run <command>make tests/validate</command> to compile it. Issue
267 <command>tests/validate 2>&amp;1 | tee validate.log</command> to run the
268 validation suite.--> <!-- summary is last line of output
269 The result summary may be obtained with <command>grep
270 "validation suite" validate.log</command>. -->
271 <!-- I'm not convinced that Helvetica is required, I don't install the gs
272 fonts. But lots of references to it. Surely fontconfig provides it? ken -->
273 Note that the EPS, PS, and PDF
274 tests require a working <application>Ghostscript</application>. One test
275 in 'make check' needs <quote>Helvetica</quote> from <quote>Ghostscript
276 Standard Fonts</quote>, which are optionally installed in
277 <xref linkend="gs"/> - that test, and one other, might fail, but all the
278 validation can still pass.
279 </para>
280
281 </sect2>
282
283 <sect2 role="commands">
284 <title>Command Explanations</title>
285
286 <para>
287 <parameter>--enable-hdri</parameter>: Enables building of a
288 high dynamic range version of ImageMagick.
289 </para>
290
291 <para>
292 <parameter>--with-modules</parameter>: Enables support for
293 dynamically loadable modules.
294 </para>
295
296 <para>
297 <parameter>--with-perl</parameter>: Enables building and
298 installing of PerlMagick.
299 </para>
300
301 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
302 href="../../xincludes/static-libraries.xml"/>
303
304 <para>
305 <option>--with-gslib</option>: Enables support to use the
306 <application>Ghostscript</application> shared library.
307 </para>
308
309 <para>
310 <option>--with-rsvg</option>: Enables support to use the
311 <application>librsvg</application> library.
312 </para>
313
314 <para>
315 <option>--with-autotrace</option>: Enables support to use
316 the <application>Autotrace</application> library.
317 </para>
318
319 <para>
320 <option>--with-wmf</option>: Enables support to use the
321 <application>libwmf</application> library.
322 </para>
323
324 <para>
325 <option>--with-gvc</option>: Enables support to use
326 <application>GraphViz</application>.
327 </para>
328
329 <para>
330 <option>--with-windows-font-dir=
331 <replaceable>&lt;Some/Directory&gt;</replaceable></option>:
332 This option specifies the directory where the Windows CoreFonts are
333 installed.
334 </para>
335
336 <para>
337 <option>--with-dejavu-font-dir=
338 <replaceable>&lt;Some/Directory&gt;</replaceable></option>:
339 This option specifies the directory where the DejaVu fonts are
340 installed.
341 </para>
342
343 <para>
344 The options and parameters listed above are the only ones you should
345 have to pass to the <command>configure</command> script to activate all
346 the delegate dependencies. All other dependencies will be automatically
347 detected and utilized in the build if they are installed.
348 </para>
349
350 </sect2>
351
352 <sect2 role="content">
353 <title>Contents</title>
354
355 <segmentedlist>
356 <segtitle>Installed Programs</segtitle>
357 <segtitle>Installed Libraries</segtitle>
358 <segtitle>Installed Directories</segtitle>
359
360 <seglistitem>
361 <seg>
362 magick, Magick++-config, MagickCore-config, and MagickWand-config.
363 (animate, compare, composite, conjure, convert, display,
364 identify, import, magick-script, mogrify, montage, and stream
365 are all symbolic links to magick)
366 </seg>
367 <seg>
368 libMagickCore-7.Q16HDRI.so,
369 libMagickWand-7.Q16HDRI.so and
370 libMagick++-7.Q16HDRI.so
371 </seg>
372 <seg>
373 /etc/ImageMagick-7,
374 /usr/include/ImageMagick-7,
375 /usr/lib/ImageMagick-&imagemagick-version;,
376 /usr/lib/perl5/site_perl/&lfs-perl-version;/{,auto}/Image/Magick,
377 /usr/share/doc/ImageMagick-&imagemagick-version;, and
378 /usr/share/ImageMagick-7
379 </seg>
380 </seglistitem>
381 </segmentedlist>
382
383 <variablelist>
384 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
385 <?dbfo list-presentation="list"?>
386 <?dbhtml list-presentation="table"?>
387
388 <varlistentry id="animate">
389 <term><command>animate</command></term>
390 <listitem>
391 <para>
392 animates a sequence of images
393 </para>
394 <indexterm zone="imagemagick animate">
395 <primary sortas="b-animate">animate</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="compare">
401 <term><command>compare</command></term>
402 <listitem>
403 <para>
404 compares an image to a reconstructed image
405 </para>
406 <indexterm zone="imagemagick compare">
407 <primary sortas="b-compare">compare</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="composite">
413 <term><command>composite</command></term>
414 <listitem>
415 <para>
416 composites various images into the given base image
417 </para>
418 <indexterm zone="imagemagick composite">
419 <primary sortas="b-composite">composite</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="conjure">
425 <term><command>conjure</command></term>
426 <listitem>
427 <para>
428 processes a MSL script to create an image
429 </para>
430 <indexterm zone="imagemagick conjure">
431 <primary sortas="b-conjure">conjure</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="convert">
437 <term><command>convert</command></term>
438 <listitem>
439 <para>
440 converts image(s) from one format to another
441 </para>
442 <indexterm zone="imagemagick convert">
443 <primary sortas="b-convert">convert</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="display">
449 <term><command>display</command></term>
450 <listitem>
451 <para>
452 displays an image
453 </para>
454 <indexterm zone="imagemagick display">
455 <primary sortas="b-display">display</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="identify">
461 <term><command>identify</command></term>
462 <listitem>
463 <para>
464 describes the format and characteristics of an image file
465 </para>
466 <indexterm zone="imagemagick identify">
467 <primary sortas="b-identify">identify</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="import">
473 <term><command>import</command></term>
474 <listitem>
475 <para>
476 captures an X window
477 </para>
478 <indexterm zone="imagemagick import">
479 <primary sortas="b-import">import</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="magick">
485 <term><command>magick</command></term>
486 <listitem>
487 <para>
488 convert between image formats as well as resize an image,
489 blur, crop, despeckle, dither, draw on, flip, join, re-sample
490 and much more
491 </para>
492 <indexterm zone="imagemagick magick">
493 <primary sortas="b-magick">magick</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="magick-config">
499 <term><command>Magick{++,Core,Wand}-config</command></term>
500 <listitem>
501 <para>
502 show information about the installed versions of the
503 <application>ImageMagick</application> libraries
504 </para>
505 <indexterm zone="imagemagick magick-config">
506 <primary sortas="b-Magick-config">Magick-config</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="mogrify">
512 <term><command>mogrify</command></term>
513 <listitem>
514 <para>
515 transforms an image
516 </para>
517 <indexterm zone="imagemagick mogrify">
518 <primary sortas="b-mogrify">mogrify</primary>
519 </indexterm>
520 </listitem>
521 </varlistentry>
522
523 <varlistentry id="montage">
524 <term><command>montage</command></term>
525 <listitem>
526 <para>
527 composites various images into a new image
528 </para>
529 <indexterm zone="imagemagick montage">
530 <primary sortas="b-montage">montage</primary>
531 </indexterm>
532 </listitem>
533 </varlistentry>
534
535 <varlistentry id="stream">
536 <term><command>stream</command></term>
537 <listitem>
538 <para>
539 streams one or more pixel components of an image or
540 portion of the image to your choice of storage formats
541 </para>
542 <indexterm zone="imagemagick stream">
543 <primary sortas="b-stream">stream</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
548 <varlistentry id="perlmagick">
549 <term><filename class="libraryfile">Image::Magick</filename></term>
550 <listitem>
551 <para>
552 allows the reading, manipulation and writing of a large number of
553 image file formats using the <application>ImageMagick</application>
554 library. Run <command>make</command> in the
555 <filename class="directory">PerlMagick/demo</filename> directory of
556 the package source tree after the package is installed to see a nice
557 demo of the module's capabilities
558 </para>
559 <indexterm zone="imagemagick perlmagick">
560 <primary sortas="g-Image-Magick">Image::Magick</primary>
561 </indexterm>
562 </listitem>
563 </varlistentry>
564
565 <varlistentry id="libMagickCore-7.Q16HDRI">
566 <term><filename class="libraryfile">libMagickCore-7.Q16HDRI.so</filename></term>
567 <listitem>
568 <para>
569 provides the C API for ImageMagick
570 </para>
571 <indexterm zone="imagemagick libMagickCore-7.Q16HDRI">
572 <primary sortas="c-libMagickCore-7.Q16HDRI">libMagickCore-7.Q16HDRI.so</primary>
573 </indexterm>
574 </listitem>
575 </varlistentry>
576
577 <varlistentry id="libMagickWand-7.Q16HDRI">
578 <term><filename class="libraryfile">libMagickWand-7.Q16HDRI.so</filename></term>
579 <listitem>
580 <para>
581 is the recommended C API for ImageMagick. Unlike the MagickCore API it
582 uses only a few opaque types
583 </para>
584 <indexterm zone="imagemagick libMagickWand-7.Q16HDRI">
585 <primary sortas="c-libMagickWand-7.Q16HDRI">libMagickWand-7.Q16HDRI.so</primary>
586 </indexterm>
587 </listitem>
588 </varlistentry>
589
590 <varlistentry id="libMagickpp-7.Q16HDRI">
591 <term><filename class="libraryfile">libMagick++-7.Q16HDRI.so</filename></term>
592 <listitem>
593 <para>
594 provides the C++ API for ImageMagick
595 </para>
596 <indexterm zone="imagemagick libMagickpp-7.Q16HDRI">
597 <primary sortas="c-libMagick++-7.Q16HDRI">libMagick++-7.Q16HDRI.so</primary>
598 </indexterm>
599 </listitem>
600 </varlistentry>
601
602 </variablelist>
603
604 </sect2>
605
606</sect1>
Note: See TracBrowser for help on using the repository browser.