Im Agemagick
Total Page:16
File Type:pdf, Size:1020Kb
Convert, Edit, and Compose Images Magick ge a m I ImageMagick User's Guide version 5.4.8 John Cristy Bob Friesenhahn Glenn Randers-Pehrson ImageMagick Studio LLC http://www.imagemagick.org Copyright Copyright (C) 2002 ImageMagick Studio, a non-profit organization dedicated to making software imaging solutions freely available. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (“ImageMagick”), to deal in ImageMagick without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of ImageMagick, and to permit persons to whom the ImageMagick is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of ImageMagick. The software is provided “as is”, without warranty of any kind, express or im- plied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall ImageMagick Studio be liable for any claim, damages or other liability, whether in an action of con- tract, tort or otherwise, arising from, out of or in connection with ImageMagick or the use or other dealings in ImageMagick. Except as contained in this notice, the name of the ImageMagick Studio shall not be used in advertising or otherwise to promote the sale, use or other dealings in ImageMagick without prior written authorization from the ImageMagick Studio. v Contents Preface . xiii Part 1: Quick Start Guide ¡ ¡ ¢ £ ¢ ¡ ¢ £ ¢ ¡ ¡ ¡ ¢ £ ¡ ¢ £ ¢ ¡ ¢ £ ¢ ¡ ¡ ¡ ¢ £ ¢ ¡ ¢ 1 1 Introduction . 3 1.1 What is ImageMagick . 3 1.2 Getting Help . 3 2 Image Primer . 4 2.1 What is an Image . 4 2.2 Image Depth . 4 2.3 Colormapped Images . 4 2.4 Compression . 4 2.5 Colorspace . 4 2.6 Meta-Information . 4 2.7 Image Formats . 4 3 Image Tools . 5 4 Image Transformations . 6 4.1 How to specify an image . 7 4.2 Convert from one Image Format to Another . 7 4.3 Colormap Manipulation . 7 4.4 Resize an Image . 7 4.5 Crop. 7 4.6 Enhance . 7 vi Contents vii 4.7 Effects . 7 4.8 Decorate . 7 4.9 Annotate . 7 4.10 Draw . 7 4.11 Composite . 7 4.12 Meta-Information . 7 4.13 Miscellanious Transforms . 7 5 Advanced ImageMagick Features . 8 5.1 Working with Multi-resolution Images . 9 5.2 Working with an Image Sequence . 9 5.3 Working with a Group of Images . 9 5.4 Working with Raw Images . 9 5.5 Using ImageMagick from a Web Browser . 9 Part 2: Application Programming Interface £ ¢ ¡ ¢ £ ¢ ¡ ¡ ¡ ¢ 11 6 C Application Programming Interface . 13 6.1 Working with Blobs . 13 6.2 Working with Threads . 13 7 C++ Application Programming Interface . 14 7.1 Working with Blobs . 14 7.2 Working with Threads . 14 8 Perl Application Programming Interface. 15 8.1 Background . 15 9 PHP Application Programming Interface . 16 9.1 Background . 16 10 Other Application Programming Interfaces . 17 10.1 Java . 17 10.2 Python . 17 viii Contents 10.3 ImageMagick Integration Project . 17 Part 3: User’s Guide ¢ ¡ ¡ ¡ ¢ £ ¢ ¡ ¢ £ ¢ ¡ ¡ ¡ ¢ £ ¢ ¡ ¢ £ ¡ ¢ £ ¢ ¡ ¡ ¡ ¢ £ ¢ ¡ ¢ £ ¢ ¡ ¡ 19 11 Image Channels . 21 11.1 Working with Image Channels . 21 12 Image Painting . 22 12.1 Image Painting . 22 13 Color Profiles . 23 13.1 Working with Color Profiles . 23 14 Image Drawing . 24 14.1 SVG . 24 14.2 MVG . 24 Part 4: Installation And Administration Guide ¢ £ ¢ ¡ ¢ £ ¢ 25 15 Installing from Binary . 27 15.1 Downloading . 27 15.2 Linux RPM . 27 15.3 Windows . 27 15.4 VMS . 27 15.5 Unix. 27 15.6 Other . 27 16 Installing from Source . 28 16.1 Downloading . 28 16.2 Unix. 28 16.3 Windows . 28 16.4 Macintosh . 28 16.5 VMS . 28 Contents ix 17 Customizing ImageMagick . 29 17.1 Image Depth . 29 17.2 Image Cache . 29 17.3 Delegates . 29 17.4 magic.mgk . 29 17.5 fontmap.mgk . ..