diff --git a/utilities/ImageMagick.1 b/utilities/ImageMagick.1
new file mode 100644
index 0000000..d87c8cb
--- /dev/null
+++ b/utilities/ImageMagick.1
@@ -0,0 +1,69 @@
+.TH ImageMagick 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+ImageMagick \- is a free software suite for the creation, modification and display of bitmap images.
+.SH SYNOPSIS
+\fBconvert\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
+.SH OVERVIEW
+
+ImageMagick\[rg], is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and B\\['e]zier curves.
+
+ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.
+
+The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically.
+
+ImageMagick includes a number of command-line utilities for manipulating images. Most of you are probably accustom to editing images one at a time with a graphical user interface (GUI) with such programs as gimp or Photoshop. However, a GUI is not always convenient. Suppose you want to process an image dynamically from a web script or you want to apply the same operations to many images or repeat a specific operation at different times to the same or different image. For these types of operations, the command-line image processing utility is appropriate.
+
+In the paragraphs below, find a short description for each command-line tool.Click on the program name to get details on the program usage and a list of command-line options that alters how the program performs. If you are just getting acquianted with ImageMagick, start at the top of the list, the convert program, and work your way dowm. Also be sure to peruse Anthony Thyssen's tutorial on how to use ImageMagick utilities to convert, compose, or edit images from the command-line.
+.TP
+.B convert
+
+convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
+.TP
+.B identify
+
+describes the format and characteristics of one or more image files.
+.TP
+.B mogrify
+
+resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert writes to a different image file.
+.TP
+.B composite
+
+overlaps one image over another.
+.TP
+.B montage
+
+create a composite image by combining several separate images. The images are tiled on the composite image optionall adorned with a border, frame, image name, and more.
+.TP
+.B compare
+
+mathematically and visually annotate the difference between an image and its reconstruction..
+
+.TP
+.B stream
+
+is a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats. It writes the pixel components as they are read from the input image a row at a time making stream desirable when working with large images or when you require raw pixel components.
+
+.TP
+.B display
+
+displays an image or image sequence on any X server.
+.TP
+.B animate
+
+animates an image sequence on any X server.
+.TP
+.B import
+
+saves any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen.
+.TP
+.B conjure
+
+interprets and executes scripts written in the Magick Scripting Language (MSL).
+.PP
+For more information about the ImageMagick, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/index.html or http://www.imagemagick.org/.
+.SH SEE ALSO
+convert(1), identify(1), composite(1), montage(1), compare(1), display(1), animate(1), import(1), conjure(1), quantize(5), miff(4)
+
+.SH COPYRIGHT
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/ImageMagick.1.in b/utilities/ImageMagick.1.in
new file mode 100644
index 0000000..f10a39b
--- /dev/null
+++ b/utilities/ImageMagick.1.in
@@ -0,0 +1,69 @@
+.TH ImageMagick 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+ImageMagick \- is a free software suite for the creation, modification and display of bitmap images.
+.SH SYNOPSIS
+\fBconvert\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
+.SH OVERVIEW
+
+ImageMagick\[rg], is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and B\\['e]zier curves.
+
+ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.
+
+The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically.
+
+ImageMagick includes a number of command-line utilities for manipulating images. Most of you are probably accustom to editing images one at a time with a graphical user interface (GUI) with such programs as gimp or Photoshop. However, a GUI is not always convenient. Suppose you want to process an image dynamically from a web script or you want to apply the same operations to many images or repeat a specific operation at different times to the same or different image. For these types of operations, the command-line image processing utility is appropriate.
+
+In the paragraphs below, find a short description for each command-line tool.Click on the program name to get details on the program usage and a list of command-line options that alters how the program performs. If you are just getting acquianted with ImageMagick, start at the top of the list, the convert program, and work your way dowm. Also be sure to peruse Anthony Thyssen's tutorial on how to use ImageMagick utilities to convert, compose, or edit images from the command-line.
+.TP
+.B convert
+
+convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
+.TP
+.B identify
+
+describes the format and characteristics of one or more image files.
+.TP
+.B mogrify
+
+resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert writes to a different image file.
+.TP
+.B composite
+
+overlaps one image over another.
+.TP
+.B montage
+
+create a composite image by combining several separate images. The images are tiled on the composite image optionall adorned with a border, frame, image name, and more.
+.TP
+.B compare
+
+mathematically and visually annotate the difference between an image and its reconstruction..
+
+.TP
+.B stream
+
+is a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats. It writes the pixel components as they are read from the input image a row at a time making stream desirable when working with large images or when you require raw pixel components.
+
+.TP
+.B display
+
+displays an image or image sequence on any X server.
+.TP
+.B animate
+
+animates an image sequence on any X server.
+.TP
+.B import
+
+saves any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen.
+.TP
+.B conjure
+
+interprets and executes scripts written in the Magick Scripting Language (MSL).
+.PP
+For more information about the ImageMagick, point your browser to file://@DOCUMENTATION_PATH@/index.html or http://www.imagemagick.org/.
+.SH SEE ALSO
+convert(1), identify(1), composite(1), montage(1), compare(1), display(1), animate(1), import(1), conjure(1), quantize(5), miff(4)
+
+.SH COPYRIGHT
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/Makefile.am b/utilities/Makefile.am
new file mode 100644
index 0000000..62c664f
--- /dev/null
+++ b/utilities/Makefile.am
@@ -0,0 +1,112 @@
+# Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
+# dedicated to making software imaging solutions freely available.
+#
+# You may not use this file except in compliance with the License. You may
+# obtain a copy of the License at
+#
+# http://www.imagemagick.org/script/license.php
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Copyright (C) 2003 - 2008 GraphicsMagick Group
+#
+# Makefile for building ImageMagick utilities.
+
+UTILITIES_PGMS = \
+ utilities/animate \
+ utilities/compare \
+ utilities/composite \
+ utilities/conjure \
+ utilities/convert \
+ utilities/display \
+ utilities/identify \
+ utilities/import \
+ utilities/mogrify \
+ utilities/montage \
+ utilities/stream
+
+UTILITIES_XFAIL_TESTS = \
+ $(UTILITIES_TTF_XFAIL_TESTS) \
+ $(UTILITIES_XML_XFAIL_TESTS)
+
+utilities_animate_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_animate_LDFLAGS = $(LDFLAGS)
+utilities_animate_SOURCES = utilities/animate.c
+
+utilities_compare_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_compare_LDFLAGS = $(LDFLAGS)
+utilities_compare_SOURCES = utilities/compare.c
+
+utilities_composite_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_composite_LDFLAGS = $(LDFLAGS)
+utilities_composite_SOURCES = utilities/composite.c
+
+utilities_conjure_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_conjure_LDFLAGS = $(LDFLAGS)
+utilities_conjure_SOURCES = utilities/conjure.c
+
+utilities_convert_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_convert_LDFLAGS = $(LDFLAGS)
+utilities_convert_SOURCES = utilities/convert.c
+
+utilities_display_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_display_LDFLAGS = $(LDFLAGS)
+utilities_display_SOURCES = utilities/display.c
+
+utilities_identify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_identify_LDFLAGS = $(LDFLAGS)
+utilities_identify_SOURCES = utilities/identify.c
+
+utilities_import_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_import_LDFLAGS = $(LDFLAGS)
+utilities_import_SOURCES = utilities/import.c
+
+utilities_mogrify_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_mogrify_LDFLAGS = $(LDFLAGS)
+utilities_mogrify_SOURCES = utilities/mogrify.c
+
+utilities_montage_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_montage_LDFLAGS = $(LDFLAGS)
+utilities_montage_SOURCES = utilities/montage.c
+
+utilities_stream_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
+utilities_stream_LDFLAGS = $(LDFLAGS)
+utilities_stream_SOURCES = utilities/stream.c
+
+UTILITIES_MANS = \
+ utilities/ImageMagick.1 \
+ utilities/animate.1 \
+ utilities/compare.1 \
+ utilities/composite.1 \
+ utilities/conjure.1 \
+ utilities/convert.1 \
+ utilities/display.1 \
+ utilities/identify.1 \
+ utilities/import.1 \
+ utilities/mogrify.1 \
+ utilities/montage.1 \
+ utilities/stream.1
+
+UTILITIES_CONFIGURE = \
+ utilities/ImageMagick.1.in \
+ utilities/animate.1.in \
+ utilities/compare.1.in \
+ utilities/composite.1.in \
+ utilities/conjure.1.in \
+ utilities/convert.1.in \
+ utilities/display.1.in \
+ utilities/identify.1.in \
+ utilities/import.1.in \
+ utilities/mogrify.1.in \
+ utilities/montage.1.in \
+ utilities/stream.1.in
+
+UTILITIES_EXTRA_DIST = \
+ $(UTILITIES_MANS) \
+ $(UTILITIES_TESTS)
+
+UTILITIES_CLEANFILES =
diff --git a/utilities/animate.1 b/utilities/animate.1
new file mode 100644
index 0000000..d6dab6f
--- /dev/null
+++ b/utilities/animate.1
@@ -0,0 +1,96 @@
+.TH animate 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+animate \- animates an image or image sequence on any X server.
+.SH SYNOPSIS
+.TP
+\fBanimate\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBanimate\fP program is a member of the ImageMagick(1) suite of tools. Use it to animate an image or image sequence on any X server.
+
+For more information about the animate command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/animate.html or http://www.imagemagick.org/script/animate.php.
+.SH DESCRIPTION
+Image Settings:
+ \-authenticate value decrypt image with this password
+ \-backdrop display image centered on a backdrop
+ \-channel type apply option to select image channels
+ \-colormap type Shared or Private
+ \-colorspace type alternate image colorspace
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server display image to this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-format "string" output formatted image characteristics
+ \-gamma value level of gamma correction
+ \-geometry geometry preferred size and location of the Image window
+ \-gravity type horizontal and vertical backdrop placement
+ \-identify identify the format and characteristics of the image
+ \-immutable displayed image cannot be modified
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-limit type value pixel cache resource limit
+ \-loop iterations loop images then exit
+ \-matte store matte channel if the image has one
+ \-map type display image using this Standard Colormap
+ \-monitor monitor progress
+ \-pause seconds to pause before reanimating
+ \-page geometry size and location of an image canvas (setting)
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-remote command execute a command in an remote display process
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scenes range image scene range
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-verbose print detailed information about the image
+ \-visual type display image using this visual type
+ \-virtual-pixel method
+ virtual pixel access method
+ \-window id display image to background of this window
+
+Image Operators:
+ \-colors value preferred number of colors in the image
+ \-crop geometry preferred size and location of the cropped image
+ \-extract geometry extract area from image
+ \-monochrome transform image to black and white
+ \-repage geometry size and location of an image canvas (operator)
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-rotate degrees apply Paeth rotation to the image
+ \-strip strip image of all profiles and comments
+ \-trim trim image edges
+
+Image Sequence Operators:
+ \-coalesce merge a sequence of images
+ \-flatten flatten a sequence of images
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In addition to those listed above, you can specify these standard X resources as command line options: \-background, \-bordercolor, \-borderwidth, \-font, \-foreground, \-iconGeometry, \-iconic, \-name, \-mattecolor, \-shared-memory, or \-title.
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+
+Buttons:
+ 1 press to map or unmap the Command widget
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/animate.1.in b/utilities/animate.1.in
new file mode 100644
index 0000000..7e09660
--- /dev/null
+++ b/utilities/animate.1.in
@@ -0,0 +1,96 @@
+.TH animate 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+animate \- animates an image or image sequence on any X server.
+.SH SYNOPSIS
+.TP
+\fBanimate\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBanimate\fP program is a member of the ImageMagick(1) suite of tools. Use it to animate an image or image sequence on any X server.
+
+For more information about the animate command, point your browser to file://@DOCUMENTATION_PATH@/www/animate.html or http://www.imagemagick.org/script/animate.php.
+.SH DESCRIPTION
+Image Settings:
+ \-authenticate value decrypt image with this password
+ \-backdrop display image centered on a backdrop
+ \-channel type apply option to select image channels
+ \-colormap type Shared or Private
+ \-colorspace type alternate image colorspace
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server display image to this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-format "string" output formatted image characteristics
+ \-gamma value level of gamma correction
+ \-geometry geometry preferred size and location of the Image window
+ \-gravity type horizontal and vertical backdrop placement
+ \-identify identify the format and characteristics of the image
+ \-immutable displayed image cannot be modified
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-limit type value pixel cache resource limit
+ \-loop iterations loop images then exit
+ \-matte store matte channel if the image has one
+ \-map type display image using this Standard Colormap
+ \-monitor monitor progress
+ \-pause seconds to pause before reanimating
+ \-page geometry size and location of an image canvas (setting)
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-remote command execute a command in an remote display process
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scenes range image scene range
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-verbose print detailed information about the image
+ \-visual type display image using this visual type
+ \-virtual-pixel method
+ virtual pixel access method
+ \-window id display image to background of this window
+
+Image Operators:
+ \-colors value preferred number of colors in the image
+ \-crop geometry preferred size and location of the cropped image
+ \-extract geometry extract area from image
+ \-monochrome transform image to black and white
+ \-repage geometry size and location of an image canvas (operator)
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-rotate degrees apply Paeth rotation to the image
+ \-strip strip image of all profiles and comments
+ \-trim trim image edges
+
+Image Sequence Operators:
+ \-coalesce merge a sequence of images
+ \-flatten flatten a sequence of images
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In addition to those listed above, you can specify these standard X resources as command line options: \-background, \-bordercolor, \-borderwidth, \-font, \-foreground, \-iconGeometry, \-iconic, \-name, \-mattecolor, \-shared-memory, or \-title.
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+
+Buttons:
+ 1 press to map or unmap the Command widget
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/animate.c b/utilities/animate.c
new file mode 100644
index 0000000..af8c325
--- /dev/null
+++ b/utilities/animate.c
@@ -0,0 +1,165 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% AAA N N IIIII M M AAA TTTTT EEEEE %
+% A A NN N I MM MM A A T E %
+% AAAAA N N N I M M M AAAAA T EEE %
+% A A N NN I M M A A T E %
+% A A N N IIIII M M A A T EEEEE %
+% %
+% %
+% Interactively Animate an Image Sequence. %
+% %
+% Software Design %
+% John Cristy %
+% July 1992 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Animate displays a sequence of images in the MIFF format on any
+% workstation display running an X server. Animate first determines the
+% hardware capabilities of the workstation. If the number of unique
+% colors in an image is less than or equal to the number the workstation
+% can support, the image is displayed in an X window. Otherwise the
+% number of colors in the image is first reduced to match the color
+% resolution of the workstation before it is displayed.
+%
+% This means that a continuous-tone 24 bits-per-pixel image can display on a
+% 8 bit pseudo-color device or monochrome device. In most instances the
+% reduced color image closely resembles the original. Alternatively, a
+% monochrome or pseudo-color image can display on a continuous-tone 24
+% bits-per-pixel device.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+
+#if defined(__WINDOWS__)
+int WINAPI WinMain(HINSTANCE instance,HINSTANCE last,LPSTR command,int state)
+{
+ char
+ **argv;
+
+ int
+ argc,
+ main(int,char **);
+
+ argv=StringToArgv(command,&argc);
+ return(main(argc,argv));
+}
+#endif
+
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=AnimateImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/compare.1 b/utilities/compare.1
new file mode 100644
index 0000000..be2f300
--- /dev/null
+++ b/utilities/compare.1
@@ -0,0 +1,66 @@
+.TH compare 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+compare \- mathematically and visually annotate the difference between an image and its reconstruction.
+.SH SYNOPSIS
+.TP
+\fBcompare\fP \fIinput-file\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
+.SH OVERVIEW
+The \fBcompare\fP program is a member of the ImageMagick(1) suite of tools. Use it to mathematically and visually annotate the difference between an image and its reconstruction.
+
+For more information about the compare command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/compare.html or http://www.imagemagick.org/script/compare.php.
+.SH DESCRIPTION
+Image Settings:
+ \-authenticate value decrypt image with this password
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-compose operator set image composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-encipher filename convert plain pixels to cipher pixels
+ \-extract geometry extract area from image
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-identify identify the format and characteristics of the image
+ \-interlace type type of image interlacing scheme
+ \-highlight-color color
+ emphasize pixel differences with this color
+ \-limit type value pixel cache resource limit
+ \-lowlight-color color
+ de-emphasize pixel differences with this color
+ \-metric type measure differences between images with this metric
+ \-monitor monitor progress
+ \-profile filename add, delete, or apply an image profile
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-quantize colorspace reduce colors in this colorspace
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-transparent-color color
+ transparent color
+ \-type type image type
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/compare.1.in b/utilities/compare.1.in
new file mode 100644
index 0000000..a0a54d9
--- /dev/null
+++ b/utilities/compare.1.in
@@ -0,0 +1,66 @@
+.TH compare 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+compare \- mathematically and visually annotate the difference between an image and its reconstruction.
+.SH SYNOPSIS
+.TP
+\fBcompare\fP \fIinput-file\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
+.SH OVERVIEW
+The \fBcompare\fP program is a member of the ImageMagick(1) suite of tools. Use it to mathematically and visually annotate the difference between an image and its reconstruction.
+
+For more information about the compare command, point your browser to file://@DOCUMENTATION_PATH@/www/compare.html or http://www.imagemagick.org/script/compare.php.
+.SH DESCRIPTION
+Image Settings:
+ \-authenticate value decrypt image with this password
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-compose operator set image composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-encipher filename convert plain pixels to cipher pixels
+ \-extract geometry extract area from image
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-identify identify the format and characteristics of the image
+ \-interlace type type of image interlacing scheme
+ \-highlight-color color
+ emphasize pixel differences with this color
+ \-limit type value pixel cache resource limit
+ \-lowlight-color color
+ de-emphasize pixel differences with this color
+ \-metric type measure differences between images with this metric
+ \-monitor monitor progress
+ \-profile filename add, delete, or apply an image profile
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-quantize colorspace reduce colors in this colorspace
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-transparent-color color
+ transparent color
+ \-type type image type
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/compare.c b/utilities/compare.c
new file mode 100644
index 0000000..72368bd
--- /dev/null
+++ b/utilities/compare.c
@@ -0,0 +1,146 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% CCCC OOO M M PPPP AAA RRRR EEEEE %
+% C O O MM MM P P A A R R E %
+% C O O M M M PPPP AAAAA RRRR EEE %
+% C O O M M P A A R R E %
+% CCCC OOO M M P A A R R EEEEE %
+% %
+% %
+% Image Comparison Utility %
+% %
+% %
+% Software Design %
+% John Cristy %
+% December 2003 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% The compare utility mathematically and visually annotates the difference
+% between an image and its reconstruction.
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *metadata,
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ metadata=(char *) NULL;
+ status=CompareImageCommand(image_info,argc,argv,&metadata,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ if (metadata != (char *) NULL)
+ {
+ (void) fputs(metadata,stdout);
+ (void) fputc('\n',stdout);
+ metadata=DestroyString(metadata);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/composite.1 b/utilities/composite.1
new file mode 100644
index 0000000..6983dfd
--- /dev/null
+++ b/utilities/composite.1
@@ -0,0 +1,104 @@
+.TH composite 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+composite \- overlaps one image over another.
+.SH SYNOPSIS
+.TP
+\fBcomposite\fP \fB[\fP \fIoptions\fP \fB... ]\fP \fIchange-file base-file\fP \fB[\fP \fImask-file\fP \fB]\fP \fIoutput-image\fP
+.SH OVERVIEW
+The \fBcomposite\fP program is a member of the ImageMagick(1) suite of tools. Use it to overlap one image over another.
+
+For more information about the composite command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/composite.html or http://www.imagemagick.org/script/composite.php.
+.SH DESCRIPTION
+Image Settings:
+ \-affine matrix affine transform matrix
+ \-authenticate value decrypt image with this password
+ \-blue-primary point chromaticity blue primary point
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compose operator composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-depth value image depth
+ \-density geometry horizontal and vertical density of the image
+ \-display server get image or font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-encipher filename convert plain pixels to cipher pixels
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-filter type use this filter when resizing an image
+ \-font name render text with this font
+ \-format "string" output formatted image characteristics
+ \-gravity type which direction to gravitate towards
+ \-green-primary point chromaticity green primary point
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-matte store matte channel if the image has one
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas (setting)
+ \-pointsize value font point size
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-size geometry width and height of image
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-tile repeat composite operation across and down image
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-blend geometry blend images
+ \-colors value preferred number of colors in the image
+ \-displace geometry shift image pixels defined by a displacement map
+ \-dissolve value dissolve the two images a given percent
+ \-extract geometry extract area from image
+ \-geometry geometry location of the composite image
+ \-identify identify the format and characteristics of the image
+ \-monochrome transform image to black and white
+ \-negate replace every pixel with its complementary color
+ \-profile filename add ICM or IPTC information profile to image
+ \-quantize colorspace reduce colors in this colorspace
+ \-repage geometry size and location of an image canvas (operator)
+ \-rotate degrees apply Paeth rotation to the image
+ \-resize geometry resize the image
+ \-sharpen geometry sharpen the image
+ \-stegano offset hide watermark within an image
+ \-stereo combine two image to create a stereo anaglyph
+ \-strip strip image of all profiles and comments
+ \-thumbnail geometry create a thumbnail of the image
+ \-transform affine transform image
+ \-type type image type
+ \-unsharp geometry sharpen the image
+ \-watermark geometry percent brightness and saturation of a watermark
+ \-write filename write images to this file
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/composite.1.in b/utilities/composite.1.in
new file mode 100644
index 0000000..ce75f13
--- /dev/null
+++ b/utilities/composite.1.in
@@ -0,0 +1,104 @@
+.TH composite 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+composite \- overlaps one image over another.
+.SH SYNOPSIS
+.TP
+\fBcomposite\fP \fB[\fP \fIoptions\fP \fB... ]\fP \fIchange-file base-file\fP \fB[\fP \fImask-file\fP \fB]\fP \fIoutput-image\fP
+.SH OVERVIEW
+The \fBcomposite\fP program is a member of the ImageMagick(1) suite of tools. Use it to overlap one image over another.
+
+For more information about the composite command, point your browser to file://@DOCUMENTATION_PATH@/www/composite.html or http://www.imagemagick.org/script/composite.php.
+.SH DESCRIPTION
+Image Settings:
+ \-affine matrix affine transform matrix
+ \-authenticate value decrypt image with this password
+ \-blue-primary point chromaticity blue primary point
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compose operator composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-depth value image depth
+ \-density geometry horizontal and vertical density of the image
+ \-display server get image or font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-encipher filename convert plain pixels to cipher pixels
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-filter type use this filter when resizing an image
+ \-font name render text with this font
+ \-format "string" output formatted image characteristics
+ \-gravity type which direction to gravitate towards
+ \-green-primary point chromaticity green primary point
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-matte store matte channel if the image has one
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas (setting)
+ \-pointsize value font point size
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-size geometry width and height of image
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-tile repeat composite operation across and down image
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-blend geometry blend images
+ \-colors value preferred number of colors in the image
+ \-displace geometry shift image pixels defined by a displacement map
+ \-dissolve value dissolve the two images a given percent
+ \-extract geometry extract area from image
+ \-geometry geometry location of the composite image
+ \-identify identify the format and characteristics of the image
+ \-monochrome transform image to black and white
+ \-negate replace every pixel with its complementary color
+ \-profile filename add ICM or IPTC information profile to image
+ \-quantize colorspace reduce colors in this colorspace
+ \-repage geometry size and location of an image canvas (operator)
+ \-rotate degrees apply Paeth rotation to the image
+ \-resize geometry resize the image
+ \-sharpen geometry sharpen the image
+ \-stegano offset hide watermark within an image
+ \-stereo combine two image to create a stereo anaglyph
+ \-strip strip image of all profiles and comments
+ \-thumbnail geometry create a thumbnail of the image
+ \-transform affine transform image
+ \-type type image type
+ \-unsharp geometry sharpen the image
+ \-watermark geometry percent brightness and saturation of a watermark
+ \-write filename write images to this file
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/composite.c b/utilities/composite.c
new file mode 100644
index 0000000..cf9b8bb
--- /dev/null
+++ b/utilities/composite.c
@@ -0,0 +1,137 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% CCCC OOO M M PPPP OOO SSSSS IIIII TTTTT EEEEE %
+% C O O MM MM P P O O SS I T E %
+% C O O M.M M PPPP O O SSS I T EEE %
+% C O O M M P O O SS I T E %
+% CCCC OOO M M P OOO SSSSS IIIII T EEEEE %
+% %
+% %
+% Digitally composite two images. %
+% %
+% Software Design %
+% John Cristy %
+% January 1993 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Program Composite composites images to create new images.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=CompositeImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/conjure.1 b/utilities/conjure.1
new file mode 100644
index 0000000..c649624
--- /dev/null
+++ b/utilities/conjure.1
@@ -0,0 +1,34 @@
+.TH conjure 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+conjure \- interprets and executes scripts written in the Magick Scripting Language (MSL).
+.SH SYNOPSIS
+.TP
+\fBconjure\fP [\fIoptions\fP] \fIscript.msl\fP
+.SH OVERVIEW
+The \fBconjure\fP program is a member of the ImageMagick(1) suite of tools. Use it to process a Magick Scripting Language (MSL) script. The Magick scripting language (MSL) will primarily benefit those that want to accomplish custom image processing tasks but do not wish to program, or those that do not have access to a Perl interpreter or a compiler.
+
+For more information about the conjure command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/conjure.html or http://www.imagemagick.org/script/conjure.php.
+.SH DESCRIPTION
+Image Settings:
+ \-monitor monitor progress
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-verbose print detailed information about the image
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In additiion, define any key value pairs required by your script. For example,
+
+ conjure \-size 100x100 \-color blue \-foo bar script.msl
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/conjure.1.in b/utilities/conjure.1.in
new file mode 100644
index 0000000..043b537
--- /dev/null
+++ b/utilities/conjure.1.in
@@ -0,0 +1,34 @@
+.TH conjure 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+conjure \- interprets and executes scripts written in the Magick Scripting Language (MSL).
+.SH SYNOPSIS
+.TP
+\fBconjure\fP [\fIoptions\fP] \fIscript.msl\fP
+.SH OVERVIEW
+The \fBconjure\fP program is a member of the ImageMagick(1) suite of tools. Use it to process a Magick Scripting Language (MSL) script. The Magick scripting language (MSL) will primarily benefit those that want to accomplish custom image processing tasks but do not wish to program, or those that do not have access to a Perl interpreter or a compiler.
+
+For more information about the conjure command, point your browser to file://@DOCUMENTATION_PATH@/www/conjure.html or http://www.imagemagick.org/script/conjure.php.
+.SH DESCRIPTION
+Image Settings:
+ \-monitor monitor progress
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-verbose print detailed information about the image
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In additiion, define any key value pairs required by your script. For example,
+
+ conjure \-size 100x100 \-color blue \-foo bar script.msl
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/conjure.c b/utilities/conjure.c
new file mode 100644
index 0000000..39f22d3
--- /dev/null
+++ b/utilities/conjure.c
@@ -0,0 +1,156 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% CCCC OOO N N JJJJJ U U RRRR EEEEE %
+% C O O NN N J U U R R E %
+% C O O N N N J U U RRRR EEE %
+% C O O N NN J J U U R R E %
+% CCCC OOO N N JJJ UUU R R EEEEE %
+% %
+% %
+% Interpret Magick Scripting Language. %
+% %
+% Software Design %
+% John Cristy %
+% December 2001 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Conjure interprets and executes scripts in the Magick Scripting Language
+% (MSL). The Magick scripting language (MSL) will primarily benefit those
+% that want to accomplish custom image processing tasks but do not wish
+% to program, or those that do not have access to a Perl interpreter or a
+% compiler. The interpreter is called conjure and here is an example script:
+%
+% <?xml version="1.0" encoding="UTF-8"?>
+% <image size="400x400" >
+% <read filename="image.gif" />
+% <get width="base-width" height="base-height" />
+% <resize geometry="%[dimensions]" />
+% <get width="width" height="height" />
+% <print output="Image sized from %[base-width]x%[base-height]
+% to %[width]x%[height].\n" />
+% <write filename="image.png" />
+% </image>
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=ConjureImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/convert.1 b/utilities/convert.1
new file mode 100644
index 0000000..a86e409
--- /dev/null
+++ b/utilities/convert.1
@@ -0,0 +1,256 @@
+.TH convert 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+convert \- convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
+.SH SYNOPSIS
+.TP
+\fBconvert\fP [\fIinput-options\fP] \fIinput-file\fP [\fIoutput-options\fP] \fIoutput-file\fP
+.SH OVERVIEW
+The \fBconvert\fP program is a member of the ImageMagick(1) suite of tools. Use it to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
+
+For more information about the convert command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/convert.html or http://www.imagemagick.org/script/convert.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-affine matrix affine transform matrix
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-background color background color
+ \-bias value add bias when convolving an image
+ \-black-point-compensation
+ use black point compensation
+ \-blue-primary point chromaticity blue primary point
+ \-bordercolor color border color
+ \-caption string assign a caption to an image
+ \-cdl filename color correct with a color decision list
+ \-channel type apply option to select image channels
+ \-colors value preferred number of colors in the image
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compose operator set image composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server get image or font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-encipher filename convert plain pixels to cipher pixels
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-family name render text with this font family
+ \-fill color color to use when filling a graphic primitive
+ \-filter type use this filter when resizing an image
+ \-flatten flatten a sequence of images
+ \-font name render text with this font
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-gravity type horizontal and vertical text placement
+ \-green-primary point chromaticity green primary point
+ \-intent type type of rendering intent when managing the image color
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-loop iterations add Netscape loop extension to your GIF animation
+ \-mask filename associate a mask with the image
+ \-matte store matte channel if the image has one
+ \-mattecolor color frame color
+ \-monitor monitor progress
+ \-orient type image orientation
+ \-origin geometry image origin
+ \-page geometry size and location of an image canvas (setting)
+ \-ping efficiently determine image attributes
+ \-pointsize value font point size
+ \-preview type image preview type
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-size geometry width and height of image
+ \-stretch type render text with this font stretch
+ \-stroke color graphic primitive stroke color
+ \-strokewidth value graphic primitive stroke width
+ \-style type render text with this font style
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-tile-offset geometry
+ tile offset
+ \-treedepth value color tree depth
+ \-transparent-color color
+ transparent color
+ \-undercolor color annotation bounding box color
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-view FlashPix viewing transforms
+ \-virtual-pixel method
+ virtual pixel access method
+ \-weight type render text with this font weight
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-adaptive-blur geometry
+ adaptively blur pixels; decrease effect near edges
+ \-adaptive-resize geometry
+ adaptively resize image with data dependent triangulation
+ \-adaptive-sharpen geometry
+ adaptively sharpen pixels; increase effect near edges
+ \-annotate geometry text
+ annotate the image with text
+ \-auto-orient automatically orient image
+ \-black-threshold value
+ force all pixels below the threshold into black
+ \-blur geometry reduce image noise and reduce detail levels
+ \-border geometry surround image with a border of color
+ \-charcoal radius simulate a charcoal drawing
+ \-chop geometry remove pixels from the image interior
+ \-clip clip along the first path from the 8BIM profile
+ \-clip-mask filename associate a clip mask with the image
+ \-clip-path id clip along a named path from the 8BIM profile
+ \-colorize value colorize the image with the fill color
+ \-contrast enhance or reduce the image contrast
+ \-contrast-stretch geometry
+ improve contrast by `stretching' the intensity range
+ \-convolve coefficients
+ apply a convolution kernel to the image
+ \-cycle amount cycle the image colormap
+ \-despeckle reduce the speckles within an image
+ \-draw string annotate the image with a graphic primitive
+ \-edge radius apply a filter to detect edges in the image
+ \-emboss radius emboss an image
+ \-enhance apply a digital filter to enhance a noisy image
+ \-equalize perform histogram equalization to an image
+ \-evaluate operator value
+ evaluate an arithmetic, relational, or logical expression
+ \-extent geometry set the image size
+ \-extract geometry extract area from image
+ \-fft implements the discrete Fourier transform (DFT)
+ \-flip flip image vertically
+ \-floodfill geometry color
+ floodfill the image with color
+ \-flop flop image horizontally
+ \-frame geometry surround image with an ornamental border
+ \-function name apply a function to the image
+ \-gamma value level of gamma correction
+ \-gaussian-blur geometry
+ reduce image noise and reduce detail levels
+ \-geometry geometry perferred size or location of the image
+ \-identify identify the format and characteristics of the image
+ \-ift implements the inverse discrete Fourier transform (DFT)
+ \-implode amount implode image pixels about the center
+ \-lat geometry local adaptive thresholding
+ \-layers method optimize or compare image layers
+ \-level value adjust the level of image contrast
+ \-linear-stretch geometry
+ improve contrast by `stretching with saturation' the intensity range
+ \-median radius apply a median filter to the image
+ \-modulate value vary the brightness, saturation, and hue
+ \-monochrome transform image to black and white
+ \-motion-blur geometry
+ simulate motion blur
+ \-negate replace every pixel with its complementary color
+ \-noise radius add or reduce noise in an image
+ \-normalize transform image to span the full range of colors
+ \-opaque color change this color to the fill color
+ \-ordered-dither NxN
+ add a noise pattern to the image with specific amplitudes
+ \-paint radius simulate an oil painting
+ \-polaroid angle simulate a Polaroid picture
+ \-posterize levels reduce the image to a limited number of color levels
+ \-print string interpret string and print to console
+ \-profile filename add, delete, or apply an image profile
+ \-quantize colorspace reduce colors in this colorspace
+ \-radial-blur angle radial blur the image
+ \-raise value lighten/darken image edges to create a 3-D effect
+ \-random-threshold low,high
+ random threshold the image
+ \-recolor matrix translate, scale, shear, or rotate image colors
+ \-region geometry apply options to a portion of the image
+ \-render render vector graphics
+ \-repage geometry size and location of an image canvas
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-roll geometry roll an image vertically or horizontally
+ \-rotate degrees apply Paeth rotation to the image
+ \-sample geometry scale image with pixel sampling
+ \-scale geometry scale the image
+ \-segment values segment an image
+ \-selective-blur geometry
+ selectively blur pixels within a contrast threshold
+ \-sepia-tone threshold
+ simulate a sepia-toned photo
+ \-set property value set an image property
+ \-shade degrees shade the image using a distant light source
+ \-shadow geometry simulate an image shadow
+ \-sharpen geometry sharpen the image
+ \-shave geometry shave pixels from the image edges
+ \-shear geometry slide one edge of the image along the X or Y axis
+ \-sigmoidal-contrast geometry
+ lightness rescaling using sigmoidal contrast enhancement
+ \-sketch geometry simulate a pencil sketch
+ \-solarize threshold negate all pixels above the threshold level
+ \-splice geometry splice the background color into the image
+ \-spread amount displace image pixels by a random amount
+ \-strip strip image of all profiles and comments
+ \-swirl degrees swirl image pixels about the center
+ \-threshold value threshold the image
+ \-thumbnail geometry create a thumbnail of the image
+ \-tile filename tile image when filling a graphic primitive
+ \-tint value tint the image with the fill color
+ \-transform affine transform image
+ \-transparent color make this color transparent within the image
+ \-transpose flip image vertically and rotate 90 degrees
+ \-transverse flop image horizontally and rotate 270 degrees
+ \-trim trim image edges
+ \-type type image type
+ \-unique-colors discard all but one of any pixel color
+ \-unsharp geometry sharpen the image
+ \-vignette geometry soften the edges of the image in vignette style
+ \-wave geometry alter an image along a sine wave
+ \-white-threshold value
+ force all pixels above the threshold into white
+
+Image Sequence Operators:
+ \-affinity filename transform image colors to match this set of colors
+ \-append append an image sequence
+ \-average average an image sequence
+ \-clut apply a color lookup table to the image
+ \-coalesce merge a sequence of images
+ \-combine combine a sequence of images
+ \-composite composite image
+ \-crop geometry cut out a rectangular region of the image
+ \-deconstruct break down an image sequence into constituent parts
+ \-flatten flatten a sequence of images
+ \-fx expression apply mathematical expression to an image channel(s)
+ \-hald-clut apply a Hald color lookup table to the image
+ \-morph value morph an image sequence
+ \-mosaic create a mosaic from an image sequence
+ \-process arguments process the image with a custom image filter
+ \-separate separate an image channel into a grayscale image
+ \-write filename write images to this file
+
+Image Stack Operators:
+ \-clone index clone an image
+ \-delete index delete the image from the image sequence
+ \-insert index insert last image into the image sequence
+ \-swap indexes swap two images in the image sequence
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/convert.1.in b/utilities/convert.1.in
new file mode 100644
index 0000000..bd6980b
--- /dev/null
+++ b/utilities/convert.1.in
@@ -0,0 +1,256 @@
+.TH convert 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+convert \- convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
+.SH SYNOPSIS
+.TP
+\fBconvert\fP [\fIinput-options\fP] \fIinput-file\fP [\fIoutput-options\fP] \fIoutput-file\fP
+.SH OVERVIEW
+The \fBconvert\fP program is a member of the ImageMagick(1) suite of tools. Use it to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
+
+For more information about the convert command, point your browser to file://@DOCUMENTATION_PATH@/www/convert.html or http://www.imagemagick.org/script/convert.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-affine matrix affine transform matrix
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-background color background color
+ \-bias value add bias when convolving an image
+ \-black-point-compensation
+ use black point compensation
+ \-blue-primary point chromaticity blue primary point
+ \-bordercolor color border color
+ \-caption string assign a caption to an image
+ \-cdl filename color correct with a color decision list
+ \-channel type apply option to select image channels
+ \-colors value preferred number of colors in the image
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compose operator set image composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server get image or font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-encipher filename convert plain pixels to cipher pixels
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-family name render text with this font family
+ \-fill color color to use when filling a graphic primitive
+ \-filter type use this filter when resizing an image
+ \-flatten flatten a sequence of images
+ \-font name render text with this font
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-gravity type horizontal and vertical text placement
+ \-green-primary point chromaticity green primary point
+ \-intent type type of rendering intent when managing the image color
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-loop iterations add Netscape loop extension to your GIF animation
+ \-mask filename associate a mask with the image
+ \-matte store matte channel if the image has one
+ \-mattecolor color frame color
+ \-monitor monitor progress
+ \-orient type image orientation
+ \-origin geometry image origin
+ \-page geometry size and location of an image canvas (setting)
+ \-ping efficiently determine image attributes
+ \-pointsize value font point size
+ \-preview type image preview type
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-size geometry width and height of image
+ \-stretch type render text with this font stretch
+ \-stroke color graphic primitive stroke color
+ \-strokewidth value graphic primitive stroke width
+ \-style type render text with this font style
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-tile-offset geometry
+ tile offset
+ \-treedepth value color tree depth
+ \-transparent-color color
+ transparent color
+ \-undercolor color annotation bounding box color
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-view FlashPix viewing transforms
+ \-virtual-pixel method
+ virtual pixel access method
+ \-weight type render text with this font weight
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-adaptive-blur geometry
+ adaptively blur pixels; decrease effect near edges
+ \-adaptive-resize geometry
+ adaptively resize image with data dependent triangulation
+ \-adaptive-sharpen geometry
+ adaptively sharpen pixels; increase effect near edges
+ \-annotate geometry text
+ annotate the image with text
+ \-auto-orient automatically orient image
+ \-black-threshold value
+ force all pixels below the threshold into black
+ \-blur geometry reduce image noise and reduce detail levels
+ \-border geometry surround image with a border of color
+ \-charcoal radius simulate a charcoal drawing
+ \-chop geometry remove pixels from the image interior
+ \-clip clip along the first path from the 8BIM profile
+ \-clip-mask filename associate a clip mask with the image
+ \-clip-path id clip along a named path from the 8BIM profile
+ \-colorize value colorize the image with the fill color
+ \-contrast enhance or reduce the image contrast
+ \-contrast-stretch geometry
+ improve contrast by `stretching' the intensity range
+ \-convolve coefficients
+ apply a convolution kernel to the image
+ \-cycle amount cycle the image colormap
+ \-despeckle reduce the speckles within an image
+ \-draw string annotate the image with a graphic primitive
+ \-edge radius apply a filter to detect edges in the image
+ \-emboss radius emboss an image
+ \-enhance apply a digital filter to enhance a noisy image
+ \-equalize perform histogram equalization to an image
+ \-evaluate operator value
+ evaluate an arithmetic, relational, or logical expression
+ \-extent geometry set the image size
+ \-extract geometry extract area from image
+ \-fft implements the discrete Fourier transform (DFT)
+ \-flip flip image vertically
+ \-floodfill geometry color
+ floodfill the image with color
+ \-flop flop image horizontally
+ \-frame geometry surround image with an ornamental border
+ \-function name apply a function to the image
+ \-gamma value level of gamma correction
+ \-gaussian-blur geometry
+ reduce image noise and reduce detail levels
+ \-geometry geometry perferred size or location of the image
+ \-identify identify the format and characteristics of the image
+ \-ift implements the inverse discrete Fourier transform (DFT)
+ \-implode amount implode image pixels about the center
+ \-lat geometry local adaptive thresholding
+ \-layers method optimize or compare image layers
+ \-level value adjust the level of image contrast
+ \-linear-stretch geometry
+ improve contrast by `stretching with saturation' the intensity range
+ \-median radius apply a median filter to the image
+ \-modulate value vary the brightness, saturation, and hue
+ \-monochrome transform image to black and white
+ \-motion-blur geometry
+ simulate motion blur
+ \-negate replace every pixel with its complementary color
+ \-noise radius add or reduce noise in an image
+ \-normalize transform image to span the full range of colors
+ \-opaque color change this color to the fill color
+ \-ordered-dither NxN
+ add a noise pattern to the image with specific amplitudes
+ \-paint radius simulate an oil painting
+ \-polaroid angle simulate a Polaroid picture
+ \-posterize levels reduce the image to a limited number of color levels
+ \-print string interpret string and print to console
+ \-profile filename add, delete, or apply an image profile
+ \-quantize colorspace reduce colors in this colorspace
+ \-radial-blur angle radial blur the image
+ \-raise value lighten/darken image edges to create a 3-D effect
+ \-random-threshold low,high
+ random threshold the image
+ \-recolor matrix translate, scale, shear, or rotate image colors
+ \-region geometry apply options to a portion of the image
+ \-render render vector graphics
+ \-repage geometry size and location of an image canvas
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-roll geometry roll an image vertically or horizontally
+ \-rotate degrees apply Paeth rotation to the image
+ \-sample geometry scale image with pixel sampling
+ \-scale geometry scale the image
+ \-segment values segment an image
+ \-selective-blur geometry
+ selectively blur pixels within a contrast threshold
+ \-sepia-tone threshold
+ simulate a sepia-toned photo
+ \-set property value set an image property
+ \-shade degrees shade the image using a distant light source
+ \-shadow geometry simulate an image shadow
+ \-sharpen geometry sharpen the image
+ \-shave geometry shave pixels from the image edges
+ \-shear geometry slide one edge of the image along the X or Y axis
+ \-sigmoidal-contrast geometry
+ lightness rescaling using sigmoidal contrast enhancement
+ \-sketch geometry simulate a pencil sketch
+ \-solarize threshold negate all pixels above the threshold level
+ \-splice geometry splice the background color into the image
+ \-spread amount displace image pixels by a random amount
+ \-strip strip image of all profiles and comments
+ \-swirl degrees swirl image pixels about the center
+ \-threshold value threshold the image
+ \-thumbnail geometry create a thumbnail of the image
+ \-tile filename tile image when filling a graphic primitive
+ \-tint value tint the image with the fill color
+ \-transform affine transform image
+ \-transparent color make this color transparent within the image
+ \-transpose flip image vertically and rotate 90 degrees
+ \-transverse flop image horizontally and rotate 270 degrees
+ \-trim trim image edges
+ \-type type image type
+ \-unique-colors discard all but one of any pixel color
+ \-unsharp geometry sharpen the image
+ \-vignette geometry soften the edges of the image in vignette style
+ \-wave geometry alter an image along a sine wave
+ \-white-threshold value
+ force all pixels above the threshold into white
+
+Image Sequence Operators:
+ \-affinity filename transform image colors to match this set of colors
+ \-append append an image sequence
+ \-average average an image sequence
+ \-clut apply a color lookup table to the image
+ \-coalesce merge a sequence of images
+ \-combine combine a sequence of images
+ \-composite composite image
+ \-crop geometry cut out a rectangular region of the image
+ \-deconstruct break down an image sequence into constituent parts
+ \-flatten flatten a sequence of images
+ \-fx expression apply mathematical expression to an image channel(s)
+ \-hald-clut apply a Hald color lookup table to the image
+ \-morph value morph an image sequence
+ \-mosaic create a mosaic from an image sequence
+ \-process arguments process the image with a custom image filter
+ \-separate separate an image channel into a grayscale image
+ \-write filename write images to this file
+
+Image Stack Operators:
+ \-clone index clone an image
+ \-delete index delete the image from the image sequence
+ \-insert index insert last image into the image sequence
+ \-swap indexes swap two images in the image sequence
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/convert.c b/utilities/convert.c
new file mode 100644
index 0000000..6f30cd9
--- /dev/null
+++ b/utilities/convert.c
@@ -0,0 +1,143 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% CCCC OOO N N V V EEEEE RRRR TTTTT %
+% C O O NN N V V E R R T %
+% C O O N N N V V EEE RRRR T %
+% C O O N NN V V E R R T %
+% CCCC OOO N N V EEEEE R R T %
+% %
+% %
+% Convert an image from one format to another. %
+% %
+% Software Design %
+% John Cristy %
+% April 1992 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Convert converts an input file using one image format to an output file
+% with a differing image format. By default, the image format is determined
+% by its magic number. To specify a particular image format, precede the
+% filename with an image format name and a colon (i.e. ps:image) or specify
+% the image type as the filename suffix (i.e. image.ps). Specify file as -
+% for standard input or output. If file has the extension .Z, the file is
+% decoded with uncompress.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
+#include <math.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=ConvertImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/display.1 b/utilities/display.1
new file mode 100644
index 0000000..adf9c50
--- /dev/null
+++ b/utilities/display.1
@@ -0,0 +1,128 @@
+.TH display 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+display \- displays an image or image sequence on any X server.
+.SH SYNOPSIS
+.TP
+\fBdisplay\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBdisplay\fP program is a member of the ImageMagick(1) suite of tools. Use it to display an image or image sequence on any X server.
+
+For more information about the display command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/display.html or http://www.imagemagick.org/script/display.php.
+.SH DESCRIPTION
+Image Settings:
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-backdrop display image centered on a backdrop
+ \-channel type apply option to select image channels
+ \-colormap type Shared or Private
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server display image to this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-endian type endianness (MSB or LSB) of the image
+ \-equalize perform histogram equalization to an image
+ \-filter type use this filter when resizing an image
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-geometry geometry preferred size and location of the Image window
+ \-gravity type horizontal and vertical backdrop placement
+ \-identify identify the format and characteristics of the image
+ \-immutable displayed image cannot be modified
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-loop iterations loop images then exit
+ \-map type display image using this Standard Colormap
+ \-matte store matte channel if the image has one
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas
+ \-profile filename add, delete, or apply an image profile
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-remote command execute a command in an remote display process
+ \-repage geometry size and location of an image canvas (operator)
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scenes range image scene range
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set property value set an image property
+ \-size geometry width and height of image
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-update seconds detect when image file is modified and redisplay
+ \-verbose print detailed information about the image
+ \-visual type display image using this visual type
+ \-virtual-pixel method
+ virtual pixel access method
+ \-window id display image to background of this window
+ \-window-group id exit program when this window id is destroyed
+ \-write filename write image to a file
+
+Image Operators:
+ \-auto-orient automatically orient image
+ \-border geometry surround image with a border of color
+ \-clip clip along the first path from the 8BIM profile
+ \-clip-path id clip along a named path from the 8BIM profile
+ \-colors value preferred number of colors in the image
+ \-contrast enhance or reduce the image contrast
+ \-crop geometry preferred size and location of the cropped image
+ \-despeckle reduce the speckles within an image
+ \-edge factor apply a filter to detect edges in the image
+ \-enhance apply a digital filter to enhance a noisy image
+ \-extract geometry extract area from image
+ \-flip flip image in the vertical direction
+ \-flop flop image in the horizontal direction
+ \-frame geometry surround image with an ornamental border
+ \-gamma value level of gamma correction
+ \-monochrome transform image to black and white
+ \-negate replace every pixel with its complementary color
+ \-raise value lighten/darken image edges to create a 3-D effect
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-roll geometry roll an image vertically or horizontally
+ \-rotate degrees apply Paeth rotation to the image
+ \-sample geometry scale image with pixel sampling
+ \-segment value segment an image
+ \-sharpen geometry sharpen the image
+ \-strip strip image of all profiles and comments
+ \-trim trim image edges
+
+Image Sequence Operators:
+ \-coalesce merge a sequence of images
+ \-flatten flatten a sequence of images
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In addition to those listed above, you can specify these standard X resources as command line options: \-background, \-bordercolor, \-borderwidth, \-font, \-foreground, \-iconGeometry, \-iconic, \-mattecolor, \-name, \-shared-memory, \-usePixmap, or \-title.
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+
+Buttons:
+ 1 press to map or unmap the Command widget
+ 2 press and drag to magnify a region of an image
+ 3 press to load an image from a visual image directory
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/display.1.in b/utilities/display.1.in
new file mode 100644
index 0000000..9bfa980
--- /dev/null
+++ b/utilities/display.1.in
@@ -0,0 +1,128 @@
+.TH display 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+display \- displays an image or image sequence on any X server.
+.SH SYNOPSIS
+.TP
+\fBdisplay\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBdisplay\fP program is a member of the ImageMagick(1) suite of tools. Use it to display an image or image sequence on any X server.
+
+For more information about the display command, point your browser to file://@DOCUMENTATION_PATH@/www/display.html or http://www.imagemagick.org/script/display.php.
+.SH DESCRIPTION
+Image Settings:
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-backdrop display image centered on a backdrop
+ \-channel type apply option to select image channels
+ \-colormap type Shared or Private
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server display image to this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-endian type endianness (MSB or LSB) of the image
+ \-equalize perform histogram equalization to an image
+ \-filter type use this filter when resizing an image
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-geometry geometry preferred size and location of the Image window
+ \-gravity type horizontal and vertical backdrop placement
+ \-identify identify the format and characteristics of the image
+ \-immutable displayed image cannot be modified
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-loop iterations loop images then exit
+ \-map type display image using this Standard Colormap
+ \-matte store matte channel if the image has one
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas
+ \-profile filename add, delete, or apply an image profile
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-remote command execute a command in an remote display process
+ \-repage geometry size and location of an image canvas (operator)
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scenes range image scene range
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set property value set an image property
+ \-size geometry width and height of image
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-update seconds detect when image file is modified and redisplay
+ \-verbose print detailed information about the image
+ \-visual type display image using this visual type
+ \-virtual-pixel method
+ virtual pixel access method
+ \-window id display image to background of this window
+ \-window-group id exit program when this window id is destroyed
+ \-write filename write image to a file
+
+Image Operators:
+ \-auto-orient automatically orient image
+ \-border geometry surround image with a border of color
+ \-clip clip along the first path from the 8BIM profile
+ \-clip-path id clip along a named path from the 8BIM profile
+ \-colors value preferred number of colors in the image
+ \-contrast enhance or reduce the image contrast
+ \-crop geometry preferred size and location of the cropped image
+ \-despeckle reduce the speckles within an image
+ \-edge factor apply a filter to detect edges in the image
+ \-enhance apply a digital filter to enhance a noisy image
+ \-extract geometry extract area from image
+ \-flip flip image in the vertical direction
+ \-flop flop image in the horizontal direction
+ \-frame geometry surround image with an ornamental border
+ \-gamma value level of gamma correction
+ \-monochrome transform image to black and white
+ \-negate replace every pixel with its complementary color
+ \-raise value lighten/darken image edges to create a 3-D effect
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-roll geometry roll an image vertically or horizontally
+ \-rotate degrees apply Paeth rotation to the image
+ \-sample geometry scale image with pixel sampling
+ \-segment value segment an image
+ \-sharpen geometry sharpen the image
+ \-strip strip image of all profiles and comments
+ \-trim trim image edges
+
+Image Sequence Operators:
+ \-coalesce merge a sequence of images
+ \-flatten flatten a sequence of images
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In addition to those listed above, you can specify these standard X resources as command line options: \-background, \-bordercolor, \-borderwidth, \-font, \-foreground, \-iconGeometry, \-iconic, \-mattecolor, \-name, \-shared-memory, \-usePixmap, or \-title.
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+
+Buttons:
+ 1 press to map or unmap the Command widget
+ 2 press and drag to magnify a region of an image
+ 3 press to load an image from a visual image directory
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/display.c b/utilities/display.c
new file mode 100644
index 0000000..894b7f0
--- /dev/null
+++ b/utilities/display.c
@@ -0,0 +1,167 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% DDDD IIIII SSSSS PPPP L AAA Y Y %
+% D D I SS P P L A A Y Y %
+% D D I SSS PPPP L AAAAA Y %
+% D D I SS P L A A Y %
+% DDDD IIIII SSSSS P LLLLL A A Y %
+% %
+% %
+% Interactively Display an Image. %
+% %
+% Software Design %
+% John Cristy %
+% July 1992 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Display is a machine architecture independent image processing
+% and display program. It can display any image in the MIFF format on
+% any workstation display running X. Display first determines the
+% hardware capabilities of the workstation. If the number of unique
+% colors in the image is less than or equal to the number the workstation
+% can support, the image is displayed in an X window. Otherwise the
+% number of colors in the image is first reduced to match the color
+% resolution of the workstation before it is displayed.
+%
+% This means that a continuous-tone 24 bits-per-pixel image can display on a
+% 8 bit pseudo-color device or monochrome device. In most instances the
+% reduced color image closely resembles the original. Alternatively, a
+% monochrome or pseudo-color image can display on a continuous-tone 24
+% bits-per-pixel device.
+%
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+
+#if defined(__WINDOWS__)
+int WINAPI WinMain(HINSTANCE instance,HINSTANCE last,LPSTR command,int state)
+{
+ char
+ **argv;
+
+ int
+ argc,
+ main(int,char **);
+
+ argv=StringToArgv(command,&argc);
+ return(main(argc,argv));
+}
+#endif
+
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=DisplayImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/identify.1 b/utilities/identify.1
new file mode 100644
index 0000000..d5bd911
--- /dev/null
+++ b/utilities/identify.1
@@ -0,0 +1,59 @@
+.TH identify 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+identify \- describes the format and characteristics of one or more image files.
+.SH SYNOPSIS
+.TP
+\fBidentify\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBidentify\fP program is a member of the ImageMagick(1) suite of tools. It describes the format and characteristics of one or more image files. It also reports if an image is incomplete or corrupt. The information returned includes the image number, the file name, the width and height of the image, whether the image is colormapped or not, the number of colors in the image (by default off use \fI-define unique=true\fP option), the number of bytes in the image, the format of the image (JPEG, PNM, etc.), and finally the number of seconds it took to read and process the image. Many more attributes are available with the verbose option.
+
+For more information about the identify command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/identify.html or http://www.imagemagick.org/script/identify.php.
+.SH DESCRIPTION
+Image Settings:
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-channel type apply option to select image channels
+ \-crop geometry cut out a rectangular region of the image
+ \-define format:option
+ define one or more image format options
+ \-define unique=true return the number of unique colors in the image
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-extract geometry extract area from image
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-limit type value pixel cache resource limit
+ \-list type Color, Configure, Delegate, Format, Magic, Module,
+ Resource, or Type
+ \-matte store matte channel if the image has one
+ \-monitor monitor progress
+ \-ping efficiently determine image attributes
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-strip strip image of all profiles and comments
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/identify.1.in b/utilities/identify.1.in
new file mode 100644
index 0000000..b543b20
--- /dev/null
+++ b/utilities/identify.1.in
@@ -0,0 +1,59 @@
+.TH identify 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+identify \- describes the format and characteristics of one or more image files.
+.SH SYNOPSIS
+.TP
+\fBidentify\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBidentify\fP program is a member of the ImageMagick(1) suite of tools. It describes the format and characteristics of one or more image files. It also reports if an image is incomplete or corrupt. The information returned includes the image number, the file name, the width and height of the image, whether the image is colormapped or not, the number of colors in the image (by default off use \fI-define unique=true\fP option), the number of bytes in the image, the format of the image (JPEG, PNM, etc.), and finally the number of seconds it took to read and process the image. Many more attributes are available with the verbose option.
+
+For more information about the identify command, point your browser to file://@DOCUMENTATION_PATH@/www/identify.html or http://www.imagemagick.org/script/identify.php.
+.SH DESCRIPTION
+Image Settings:
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-channel type apply option to select image channels
+ \-crop geometry cut out a rectangular region of the image
+ \-define format:option
+ define one or more image format options
+ \-define unique=true return the number of unique colors in the image
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-extract geometry extract area from image
+ \-format "string" output formatted image characteristics
+ \-fuzz distance colors within this distance are considered equal
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-limit type value pixel cache resource limit
+ \-list type Color, Configure, Delegate, Format, Magic, Module,
+ Resource, or Type
+ \-matte store matte channel if the image has one
+ \-monitor monitor progress
+ \-ping efficiently determine image attributes
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-strip strip image of all profiles and comments
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/identify.c b/utilities/identify.c
new file mode 100644
index 0000000..889990d
--- /dev/null
+++ b/utilities/identify.c
@@ -0,0 +1,146 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% IIIII DDDD EEEEE N N TTTTT IIIII FFFFF Y Y %
+% I D D E NN N T I F Y Y %
+% I D D EEE N N N T I FFF Y %
+% I D D E N NN T I F Y %
+% IIIII DDDD EEEEE N N T IIIII F Y %
+% %
+% %
+% Identify an Image Format and Characteristics. %
+% %
+% Software Design %
+% John Cristy %
+% September 1994 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Identify describes the format and characteristics of one or more image
+% files. It will also report if an image is incomplete or corrupt.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *metadata,
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ metadata=(char *) NULL;
+ status=IdentifyImageCommand(image_info,argc,argv,&metadata,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ if (metadata != (char *) NULL)
+ {
+ (void) fputs(metadata,stdout);
+ (void) fputc('\n',stdout);
+ metadata=DestroyString(metadata);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/import.1 b/utilities/import.1
new file mode 100644
index 0000000..94310a8
--- /dev/null
+++ b/utilities/import.1
@@ -0,0 +1,95 @@
+.TH import 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+import \- saves any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen.
+.SH SYNOPSIS
+.TP
+\fBimport\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBimport\fP program is a member of the ImageMagick(1) suite of tools. Use it to capture some or all of an X server screen and save the image to a file.
+
+For more information about the import command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/import.html or http://www.imagemagick.org/script/import.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compress type type of pixel compression when writing the image
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-descend obtain image by descending window hierarchy
+ \-display server X server to contact
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-delay value display the next image after pausing
+ \-encipher filename convert plain pixels to cipher pixels
+ \-endian type endianness (MSB or LSB) of the image
+ \-encoding type text encoding type
+ \-format "string" output formatted image characteristics
+ \-frame include window manager frame
+ \-gravity direction which direction to gravitate towards
+ \-identify identify the format and characteristics of the image
+ \-interlace type None, Line, Plane, or Partition
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value Area, Disk, Map, or Memory resource limit
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas
+ \-pause value seconds delay between snapshots
+ \-pointsize value font point size
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-screen select image from root window
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set property value set an image property
+ \-silent operate silently, i.e. don't ring any bells
+ \-snaps value number of screen snapshots
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ Constant, Edge, Mirror, or Tile
+ \-window id select window with this id or name
+
+Image Operators:
+ \-annotate geometry text
+ annotate the image with text
+ \-border include image borders in the output image
+ \-colors value preferred number of colors in the image
+ \-crop geometry preferred size and location of the cropped image
+ \-geometry geometry perferred size or location of the image
+ \-help print program options
+ \-monochrome transform image to black and white
+ \-negate replace every pixel with its complementary color
+ \-repage geometry size and location of an image canvas
+ \-quantize colorspace reduce colors in this colorspace
+ \-resize geometry resize the image
+ \-rotate degrees apply Paeth rotation to the image
+ \-strip strip image of all profiles and comments
+ \-thumbnail geometry create a thumbnail of the image
+ \-transparent color make this color transparent within the image
+ \-trim trim image edges
+ \-type type image type
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, 'file' is written in the MIFF image format. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/import.1.in b/utilities/import.1.in
new file mode 100644
index 0000000..261c5d6
--- /dev/null
+++ b/utilities/import.1.in
@@ -0,0 +1,95 @@
+.TH import 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+import \- saves any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen.
+.SH SYNOPSIS
+.TP
+\fBimport\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBimport\fP program is a member of the ImageMagick(1) suite of tools. Use it to capture some or all of an X server screen and save the image to a file.
+
+For more information about the import command, point your browser to file://@DOCUMENTATION_PATH@/www/import.html or http://www.imagemagick.org/script/import.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compress type type of pixel compression when writing the image
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-descend obtain image by descending window hierarchy
+ \-display server X server to contact
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-delay value display the next image after pausing
+ \-encipher filename convert plain pixels to cipher pixels
+ \-endian type endianness (MSB or LSB) of the image
+ \-encoding type text encoding type
+ \-format "string" output formatted image characteristics
+ \-frame include window manager frame
+ \-gravity direction which direction to gravitate towards
+ \-identify identify the format and characteristics of the image
+ \-interlace type None, Line, Plane, or Partition
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value Area, Disk, Map, or Memory resource limit
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas
+ \-pause value seconds delay between snapshots
+ \-pointsize value font point size
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-screen select image from root window
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set property value set an image property
+ \-silent operate silently, i.e. don't ring any bells
+ \-snaps value number of screen snapshots
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ Constant, Edge, Mirror, or Tile
+ \-window id select window with this id or name
+
+Image Operators:
+ \-annotate geometry text
+ annotate the image with text
+ \-border include image borders in the output image
+ \-colors value preferred number of colors in the image
+ \-crop geometry preferred size and location of the cropped image
+ \-geometry geometry perferred size or location of the image
+ \-help print program options
+ \-monochrome transform image to black and white
+ \-negate replace every pixel with its complementary color
+ \-repage geometry size and location of an image canvas
+ \-quantize colorspace reduce colors in this colorspace
+ \-resize geometry resize the image
+ \-rotate degrees apply Paeth rotation to the image
+ \-strip strip image of all profiles and comments
+ \-thumbnail geometry create a thumbnail of the image
+ \-transparent color make this color transparent within the image
+ \-trim trim image edges
+ \-type type image type
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, 'file' is written in the MIFF image format. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/import.c b/utilities/import.c
new file mode 100644
index 0000000..ccbc671
--- /dev/null
+++ b/utilities/import.c
@@ -0,0 +1,143 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% IIIII M M PPPP OOO RRRR TTTTT %
+% I MM MM P P O O R R T %
+% I M M M PPPP O O RRRR T %
+% I M M P O O R R T %
+% IIIII M M P OOO R R T %
+% %
+% %
+% Import image to a machine independent format. %
+% %
+% Software Design %
+% John Cristy %
+% July 1992 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Import is an X Window System window dumping utility. Import allows X
+% users to store window images in a specially formatted dump file. This
+% file can then be read by the Display utility for redisplay, printing,
+% editing, formatting, archiving, image processing, etc. The target
+% window can be specified by id or name or be selected by clicking the
+% mouse in the desired window. The keyboard bell is rung once at the
+% beginning of the dump and twice when the dump is completed.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=ImportImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/mogrify.1 b/utilities/mogrify.1
new file mode 100644
index 0000000..7497f97
--- /dev/null
+++ b/utilities/mogrify.1
@@ -0,0 +1,259 @@
+.TH mogrify 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+mogrify \- resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert(1) writes to a different image file.
+.SH SYNOPSIS
+.TP
+\fBmogrify\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBmogrify\fP program is a member of the ImageMagick(1) suite of tools. Use it to resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. This tool is similar to convert(1) except the original image file is overwritten with any changes you request.
+
+For more information about the mogrify command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/mogrify.html or http://www.imagemagick.org/script/mogrify.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-affine matrix affine transform matrix
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-background color background color
+ \-bias value add bias when convolving an image
+ \-black-point-compensation
+ use black point compensation
+ \-blue-primary point chromaticity blue primary point
+ \-bordercolor color border color
+ \-caption string assign a caption to an image
+ \-cdl filename color correct with a color decision list
+ \-channel type apply option to select image channels
+ \-colors value preferred number of colors in the image
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compose operator set image composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server get image or font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-encipher filename convert plain pixels to cipher pixels
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-family name render text with this font family
+ \-fill color color to use when filling a graphic primitive
+ \-filter type use this filter when resizing an image
+ \-flatten flatten a sequence of images
+ \-font name render text with this font
+ \-format type image format type
+ \-function name apply a function to the image
+ \-fuzz distance colors within this distance are considered equal
+ \-gravity type horizontal and vertical text placement
+ \-green-primary point chromaticity green primary point
+ \-intent type type of rendering intent when managing the image color
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-loop iterations add Netscape loop extension to your GIF animation
+ \-mask filename associate a mask with the image
+ \-matte store matte channel if the image has one
+ \-mattecolor color frame color
+ \-monitor monitor progress
+ \-orient type image orientation
+ \-origin geometry image origin
+ \-page geometry size and location of an image canvas (setting)
+ \-path path write images to this path on disk
+ \-ping efficiently determine image attributes
+ \-pointsize value font point size
+ \-preview type image preview type
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-size geometry width and height of image
+ \-stretch type render text with this font stretch
+ \-stroke color graphic primitive stroke color
+ \-strokewidth value graphic primitive stroke width
+ \-style type render text with this font style
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-tile-offset geometry
+ tile offset
+ \-treedepth value color tree depth
+ \-transparent-color color
+ transparent color
+ \-undercolor color annotation bounding box color
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-view FlashPix viewing transforms
+ \-virtual-pixel method
+ virtual pixel access method
+ \-weight type render text with this font weight
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-adaptive-blur geometry
+ adaptively blur pixels; decrease effect near edges
+ \-adaptive-resize geometry
+ adaptively resize image with data dependent triangulation
+ \-adaptive-sharpen geometry
+ adaptively sharpen pixels; increase effect near edges
+ \-annotate geometry text
+ annotate the image with text
+ \-auto-orient automatically orient image
+ \-black-threshold value
+ force all pixels below the threshold into black
+ \-blur geometry reduce image noise and reduce detail levels
+ \-border geometry surround image with a border of color
+ \-charcoal radius simulate a charcoal drawing
+ \-chop geometry remove pixels from the image interior
+ \-clip clip along the first path from the 8BIM profile
+ \-clip-mask filename associate a clip mask with the image
+ \-clip-path id clip along a named path from the 8BIM profile
+ \-colorize value colorize the image with the fill color
+ \-contrast enhance or reduce the image contrast
+ \-contrast-stretch geometry
+ improve contrast by `stretching' the intensity range
+ \-convolve coefficients
+ apply a convolution kernel to the image
+ \-cycle amount cycle the image colormap
+ \-despeckle reduce the speckles within an image
+ \-draw string annotate the image with a graphic primitive
+ \-edge radius apply a filter to detect edges in the image
+ \-emboss radius emboss an image
+ \-enhance apply a digital filter to enhance a noisy image
+ \-equalize perform histogram equalization to an image
+ \-evaluate operator value
+ evaluate an arithmetic, relational, or logical expression
+ \-extent geometry set the image size
+ \-extract geometry extract area from image
+ \-fft implements the discrete Fourier transform (DFT)
+ \-flip flip image vertically
+ \-floodfill geometry color
+ floodfill the image with color
+ \-flop flop image horizontally
+ \-frame geometry surround image with an ornamental border
+ \-gamma value level of gamma correction
+ \-gaussian-blur geometry
+ reduce image noise and reduce detail levels
+ \-geometry geometry perferred size or location of the image
+ \-ift implements the inverse discrete Fourier transform (DFT)
+ \-help print program options
+ \-identify identify the format and characteristics of the image
+ \-implode amount implode image pixels about the center
+ \-lat geometry local adaptive thresholding
+ \-layers method optimize or compare image layers
+ \-level value adjust the level of image contrast
+ \-linear-stretch geometry
+ improve contrast by `stretching with saturation' the intensity range
+ \-median radius apply a median filter to the image
+ \-modulate value vary the brightness, saturation, and hue
+ \-monochrome transform image to black and white
+ \-motion-blur geometry
+ simulate motion blur
+ \-negate replace every pixel with its complementary color
+ \-noise radius add or reduce noise in an image
+ \-normalize transform image to span the full range of colors
+ \-opaque color change this color to the fill color
+ \-ordered-dither NxN
+ add a noise pattern to the image with specific amplitudes
+ \-paint radius simulate an oil painting
+ \-polaroid angle simulate a Polaroid picture
+ \-posterize levels reduce the image to a limited number of color levels
+ \-print string interpret string and print to console
+ \-profile filename add, delete, or apply an image profile
+ \-quantize colorspace reduce colors in this colorspace
+ \-radial-blur angle radial blur the image
+ \-raise value lighten/darken image edges to create a 3-D effect
+ \-random-threshold low,high
+ random threshold the image
+ \-recolor matrix translate, scale, shear, or rotate image colors
+ \-region geometry apply options to a portion of the image
+ \-render render vector graphics
+ \-repage geometry size and location of an image canvas
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-roll geometry roll an image vertically or horizontally
+ \-rotate degrees apply Paeth rotation to the image
+ \-sample geometry scale image with pixel sampling
+ \-scale geometry scale the image
+ \-segment values segment an image
+ \-selective-blur geometry
+ selectively blur pixels within a contrast threshold
+ \-sepia-tone threshold
+ simulate a sepia-toned photo
+ \-set property value set an image property
+ \-shade degrees shade the image using a distant light source
+ \-shadow geometry simulate an image shadow
+ \-sharpen geometry sharpen the image
+ \-shave geometry shave pixels from the image edges
+ \-shear geometry slide one edge of the image along the X or Y axis
+ \-sigmoidal-contrast geometry
+ lightness rescaling using sigmoidal contrast enhancement
+ \-sketch geometry simulate a pencil sketch
+ \-solarize threshold negate all pixels above the threshold level
+ \-splice geometry splice the background color into the image
+ \-spread amount displace image pixels by a random amount
+ \-strip strip image of all profiles and comments
+ \-swirl degrees swirl image pixels about the center
+ \-threshold value threshold the image
+ \-thumbnail geometry create a thumbnail of the image
+ \-tile filename tile image when filling a graphic primitive
+ \-tint value tint the image with the fill color
+ \-transform affine transform image
+ \-transparent color make this color transparent within the image
+ \-transpose flip image vertically and rotate 90 degrees
+ \-transverse flop image horizontally and rotate 270 degrees
+ \-trim trim image edges
+ \-type type image type
+ \-unique-colors discard all but one of any pixel color
+ \-unsharp geometry sharpen the image
+ \-vignette geometry soften the edges of the image in vignette style
+ \-wave geometry alter an image along a sine wave
+ \-white-threshold value
+ force all pixels above the threshold into white
+
+Image Sequence Operators:
+ \-affinity filename transform image colors to match this set of colors
+ \-append append an image sequence
+ \-average average an image sequence
+ \-clut apply a color lookup table to the image
+ \-coalesce merge a sequence of images
+ \-combine combine a sequence of images
+ \-composite composite image
+ \-crop geometry cut out a rectangular region of the image
+ \-deconstruct break down an image sequence into constituent parts
+ \-flatten flatten a sequence of images
+ \-fx expression apply mathematical expression to an image channel(s)
+ \-hald-clut apply a Hald color lookup table to the image
+ \-morph value morph an image sequence
+ \-mosaic create a mosaic from an image sequence
+ \-process arguments process the image with a custom image filter
+ \-separate separate an image channel into a grayscale image
+ \-write filename write images to this file
+
+Image Stack Operators:
+ \-clone index clone an image
+ \-delete index delete the image from the image sequence
+ \-insert index insert last image into the image sequence
+ \-swap indexes swap two images in the image sequence
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/mogrify.1.in b/utilities/mogrify.1.in
new file mode 100644
index 0000000..1495c45
--- /dev/null
+++ b/utilities/mogrify.1.in
@@ -0,0 +1,259 @@
+.TH mogrify 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+mogrify \- resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert(1) writes to a different image file.
+.SH SYNOPSIS
+.TP
+\fBmogrify\fP [\fIoptions\fP] \fIinput-file\fP
+.SH OVERVIEW
+The \fBmogrify\fP program is a member of the ImageMagick(1) suite of tools. Use it to resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. This tool is similar to convert(1) except the original image file is overwritten with any changes you request.
+
+For more information about the mogrify command, point your browser to file://@DOCUMENTATION_PATH@/www/mogrify.html or http://www.imagemagick.org/script/mogrify.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-affine matrix affine transform matrix
+ \-antialias remove pixel-aliasing
+ \-authenticate value decrypt image with this password
+ \-background color background color
+ \-bias value add bias when convolving an image
+ \-black-point-compensation
+ use black point compensation
+ \-blue-primary point chromaticity blue primary point
+ \-bordercolor color border color
+ \-caption string assign a caption to an image
+ \-cdl filename color correct with a color decision list
+ \-channel type apply option to select image channels
+ \-colors value preferred number of colors in the image
+ \-colorspace type alternate image colorspace
+ \-comment string annotate image with comment
+ \-compose operator set image composite operator
+ \-compress type type of pixel compression when writing the image
+ \-decipher filename convert cipher pixels to plain pixels
+ \-define format:option
+ define one or more image format options
+ \-delay value display the next image after pausing
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server get image or font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-encipher filename convert plain pixels to cipher pixels
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-family name render text with this font family
+ \-fill color color to use when filling a graphic primitive
+ \-filter type use this filter when resizing an image
+ \-flatten flatten a sequence of images
+ \-font name render text with this font
+ \-format type image format type
+ \-function name apply a function to the image
+ \-fuzz distance colors within this distance are considered equal
+ \-gravity type horizontal and vertical text placement
+ \-green-primary point chromaticity green primary point
+ \-intent type type of rendering intent when managing the image color
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-loop iterations add Netscape loop extension to your GIF animation
+ \-mask filename associate a mask with the image
+ \-matte store matte channel if the image has one
+ \-mattecolor color frame color
+ \-monitor monitor progress
+ \-orient type image orientation
+ \-origin geometry image origin
+ \-page geometry size and location of an image canvas (setting)
+ \-path path write images to this path on disk
+ \-ping efficiently determine image attributes
+ \-pointsize value font point size
+ \-preview type image preview type
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scene value image scene number
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-size geometry width and height of image
+ \-stretch type render text with this font stretch
+ \-stroke color graphic primitive stroke color
+ \-strokewidth value graphic primitive stroke width
+ \-style type render text with this font style
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-tile-offset geometry
+ tile offset
+ \-treedepth value color tree depth
+ \-transparent-color color
+ transparent color
+ \-undercolor color annotation bounding box color
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-view FlashPix viewing transforms
+ \-virtual-pixel method
+ virtual pixel access method
+ \-weight type render text with this font weight
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-adaptive-blur geometry
+ adaptively blur pixels; decrease effect near edges
+ \-adaptive-resize geometry
+ adaptively resize image with data dependent triangulation
+ \-adaptive-sharpen geometry
+ adaptively sharpen pixels; increase effect near edges
+ \-annotate geometry text
+ annotate the image with text
+ \-auto-orient automatically orient image
+ \-black-threshold value
+ force all pixels below the threshold into black
+ \-blur geometry reduce image noise and reduce detail levels
+ \-border geometry surround image with a border of color
+ \-charcoal radius simulate a charcoal drawing
+ \-chop geometry remove pixels from the image interior
+ \-clip clip along the first path from the 8BIM profile
+ \-clip-mask filename associate a clip mask with the image
+ \-clip-path id clip along a named path from the 8BIM profile
+ \-colorize value colorize the image with the fill color
+ \-contrast enhance or reduce the image contrast
+ \-contrast-stretch geometry
+ improve contrast by `stretching' the intensity range
+ \-convolve coefficients
+ apply a convolution kernel to the image
+ \-cycle amount cycle the image colormap
+ \-despeckle reduce the speckles within an image
+ \-draw string annotate the image with a graphic primitive
+ \-edge radius apply a filter to detect edges in the image
+ \-emboss radius emboss an image
+ \-enhance apply a digital filter to enhance a noisy image
+ \-equalize perform histogram equalization to an image
+ \-evaluate operator value
+ evaluate an arithmetic, relational, or logical expression
+ \-extent geometry set the image size
+ \-extract geometry extract area from image
+ \-fft implements the discrete Fourier transform (DFT)
+ \-flip flip image vertically
+ \-floodfill geometry color
+ floodfill the image with color
+ \-flop flop image horizontally
+ \-frame geometry surround image with an ornamental border
+ \-gamma value level of gamma correction
+ \-gaussian-blur geometry
+ reduce image noise and reduce detail levels
+ \-geometry geometry perferred size or location of the image
+ \-ift implements the inverse discrete Fourier transform (DFT)
+ \-help print program options
+ \-identify identify the format and characteristics of the image
+ \-implode amount implode image pixels about the center
+ \-lat geometry local adaptive thresholding
+ \-layers method optimize or compare image layers
+ \-level value adjust the level of image contrast
+ \-linear-stretch geometry
+ improve contrast by `stretching with saturation' the intensity range
+ \-median radius apply a median filter to the image
+ \-modulate value vary the brightness, saturation, and hue
+ \-monochrome transform image to black and white
+ \-motion-blur geometry
+ simulate motion blur
+ \-negate replace every pixel with its complementary color
+ \-noise radius add or reduce noise in an image
+ \-normalize transform image to span the full range of colors
+ \-opaque color change this color to the fill color
+ \-ordered-dither NxN
+ add a noise pattern to the image with specific amplitudes
+ \-paint radius simulate an oil painting
+ \-polaroid angle simulate a Polaroid picture
+ \-posterize levels reduce the image to a limited number of color levels
+ \-print string interpret string and print to console
+ \-profile filename add, delete, or apply an image profile
+ \-quantize colorspace reduce colors in this colorspace
+ \-radial-blur angle radial blur the image
+ \-raise value lighten/darken image edges to create a 3-D effect
+ \-random-threshold low,high
+ random threshold the image
+ \-recolor matrix translate, scale, shear, or rotate image colors
+ \-region geometry apply options to a portion of the image
+ \-render render vector graphics
+ \-repage geometry size and location of an image canvas
+ \-resample geometry change the resolution of an image
+ \-resize geometry resize the image
+ \-roll geometry roll an image vertically or horizontally
+ \-rotate degrees apply Paeth rotation to the image
+ \-sample geometry scale image with pixel sampling
+ \-scale geometry scale the image
+ \-segment values segment an image
+ \-selective-blur geometry
+ selectively blur pixels within a contrast threshold
+ \-sepia-tone threshold
+ simulate a sepia-toned photo
+ \-set property value set an image property
+ \-shade degrees shade the image using a distant light source
+ \-shadow geometry simulate an image shadow
+ \-sharpen geometry sharpen the image
+ \-shave geometry shave pixels from the image edges
+ \-shear geometry slide one edge of the image along the X or Y axis
+ \-sigmoidal-contrast geometry
+ lightness rescaling using sigmoidal contrast enhancement
+ \-sketch geometry simulate a pencil sketch
+ \-solarize threshold negate all pixels above the threshold level
+ \-splice geometry splice the background color into the image
+ \-spread amount displace image pixels by a random amount
+ \-strip strip image of all profiles and comments
+ \-swirl degrees swirl image pixels about the center
+ \-threshold value threshold the image
+ \-thumbnail geometry create a thumbnail of the image
+ \-tile filename tile image when filling a graphic primitive
+ \-tint value tint the image with the fill color
+ \-transform affine transform image
+ \-transparent color make this color transparent within the image
+ \-transpose flip image vertically and rotate 90 degrees
+ \-transverse flop image horizontally and rotate 270 degrees
+ \-trim trim image edges
+ \-type type image type
+ \-unique-colors discard all but one of any pixel color
+ \-unsharp geometry sharpen the image
+ \-vignette geometry soften the edges of the image in vignette style
+ \-wave geometry alter an image along a sine wave
+ \-white-threshold value
+ force all pixels above the threshold into white
+
+Image Sequence Operators:
+ \-affinity filename transform image colors to match this set of colors
+ \-append append an image sequence
+ \-average average an image sequence
+ \-clut apply a color lookup table to the image
+ \-coalesce merge a sequence of images
+ \-combine combine a sequence of images
+ \-composite composite image
+ \-crop geometry cut out a rectangular region of the image
+ \-deconstruct break down an image sequence into constituent parts
+ \-flatten flatten a sequence of images
+ \-fx expression apply mathematical expression to an image channel(s)
+ \-hald-clut apply a Hald color lookup table to the image
+ \-morph value morph an image sequence
+ \-mosaic create a mosaic from an image sequence
+ \-process arguments process the image with a custom image filter
+ \-separate separate an image channel into a grayscale image
+ \-write filename write images to this file
+
+Image Stack Operators:
+ \-clone index clone an image
+ \-delete index delete the image from the image sequence
+ \-insert index insert last image into the image sequence
+ \-swap indexes swap two images in the image sequence
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/mogrify.c b/utilities/mogrify.c
new file mode 100644
index 0000000..35e5e89
--- /dev/null
+++ b/utilities/mogrify.c
@@ -0,0 +1,139 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M M OOO GGGG RRRR IIIII FFFFF Y Y %
+% MM MM O O G R R I F Y Y %
+% M M M O O G GG RRRRR I FFF Y %
+% M M O O G G R R I F Y %
+% M M OOO GGG R R IIIII F Y %
+% %
+% %
+% Transmogrify an Image or Sequence of Images. %
+% %
+% Software Design %
+% John Cristy %
+% December 1992 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Mogrify transforms an image or a sequence of images. These transforms
+% include image scaling, image rotation, color reduction, and others. The
+% transmogrified image overwrites the original image.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=MogrifyImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/montage.1 b/utilities/montage.1
new file mode 100644
index 0000000..18b8664
--- /dev/null
+++ b/utilities/montage.1
@@ -0,0 +1,124 @@
+.TH montage 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+montage \- create a composite image by combining several separate images. The images are tiled on the composite image optionall adorned with a border, frame, image name, and more.
+.SH SYNOPSIS
+.TP
+\fBmontage\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
+.SH OVERVIEW
+The \fBmontage\fP program is a member of the ImageMagick(1) suite of tools. Use it to create a composite image by combining several separate images. The images are tiled on the composite image optionally adorned with a border, frame, image name, and more.
+
+For more information about the montage command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/montage.html or http://www.imagemagick.org/script/montage.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-affine matrix affine transform matrix
+ \-authenticate value decrypt image with this password
+ \-blue-primary point chromaticity blue primary point
+ \-bordercolor color border color
+ \-channel type apply option to select image channels
+ \-colors value preferred number of colors in the image
+ \-colorspace type alternate image colorsapce
+ \-comment string annotate image with comment
+ \-compose operator composite operator
+ \-compress type type of pixel compression when writing the image
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server query font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-draw string annotate the image with a graphic primitive
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-extract geometry extract area from image
+ \-fill color color to use when filling a graphic primitive
+ \-filter type use this filter when resizing an image
+ \-font name render text with this font
+ \-format "string" output formatted image characteristics
+ \-gamma value level of gamma correction
+ \-geometry geometry preferred tile and border sizes
+ \-gravity direction which direction to gravitate towards
+ \-green-primary point chromaticity green primary point
+ \-identify identify the format and characteristics of the image
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-matte store matte channel if the image has one
+ \-mattecolor color frame color
+ \-mode type framing style
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas (setting)
+ \-pointsize value font point size
+ \-profile filename add, delete, or apply an image profile
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scenes range image scene range
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-shadow add a shadow beneath a tile to simulate depth
+ \-size geometry width and height of image
+ \-stroke color color to use when stroking a graphic primitive
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-thumbnail geometry create a thumbnail of the image
+ \-tile geometry number of tiles per row and column
+ \-title string decorate the montage image with a title
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-trim trim image edges
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-adaptive-sharpen geometry
+ adaptively sharpen pixels; increase effect near edges
+ \-annotate geometry text
+ annotate the image with text
+ \-blur geometry reduce image noise and reduce detail levels
+ \-border geometry surround image with a border of color
+ \-crop geometry preferred size and location of the cropped image
+ \-flatten flatten a sequence of images
+ \-flip flip image in the vertical direction
+ \-flop flop image in the horizontal direction
+ \-frame geometry surround image with an ornamental border
+ \-monochrome transform image to black and white
+ \-polaroid angle simulate a Polaroid picture
+ \-repage geometry size and location of an image canvas (operator)
+ \-resize geometry resize the image
+ \-rotate degrees apply Paeth rotation to the image
+ \-strip strip image of all profiles and comments
+ \-transform affine transform image
+ \-transparent color make this color transparent within the image
+ \-type type image type
+ \-unsharp geometry sharpen the image
+
+Image Sequence Operators:
+ \-coalesce merge a sequence of images
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In addition to those listed above, you can specify these standard X resources as command line options: \-background, \-bordercolor, \-borderwidth, \-font, \-mattecolor, or \-title.
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/montage.1.in b/utilities/montage.1.in
new file mode 100644
index 0000000..a42e58a
--- /dev/null
+++ b/utilities/montage.1.in
@@ -0,0 +1,124 @@
+.TH montage 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+montage \- create a composite image by combining several separate images. The images are tiled on the composite image optionall adorned with a border, frame, image name, and more.
+.SH SYNOPSIS
+.TP
+\fBmontage\fP \fIinput-file\fP [\fIoptions\fP] \fIoutput-file\fP
+.SH OVERVIEW
+The \fBmontage\fP program is a member of the ImageMagick(1) suite of tools. Use it to create a composite image by combining several separate images. The images are tiled on the composite image optionally adorned with a border, frame, image name, and more.
+
+For more information about the montage command, point your browser to file://@DOCUMENTATION_PATH@/www/montage.html or http://www.imagemagick.org/script/montage.php.
+.SH DESCRIPTION
+Image Settings:
+ \-adjoin join images into a single multi-image file
+ \-affine matrix affine transform matrix
+ \-authenticate value decrypt image with this password
+ \-blue-primary point chromaticity blue primary point
+ \-bordercolor color border color
+ \-channel type apply option to select image channels
+ \-colors value preferred number of colors in the image
+ \-colorspace type alternate image colorsapce
+ \-comment string annotate image with comment
+ \-compose operator composite operator
+ \-compress type type of pixel compression when writing the image
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-display server query font from this X server
+ \-dispose method layer disposal method
+ \-dither method apply error diffusion to image
+ \-draw string annotate the image with a graphic primitive
+ \-encoding type text encoding type
+ \-endian type endianness (MSB or LSB) of the image
+ \-extract geometry extract area from image
+ \-fill color color to use when filling a graphic primitive
+ \-filter type use this filter when resizing an image
+ \-font name render text with this font
+ \-format "string" output formatted image characteristics
+ \-gamma value level of gamma correction
+ \-geometry geometry preferred tile and border sizes
+ \-gravity direction which direction to gravitate towards
+ \-green-primary point chromaticity green primary point
+ \-identify identify the format and characteristics of the image
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-label string assign a label to an image
+ \-limit type value pixel cache resource limit
+ \-matte store matte channel if the image has one
+ \-mattecolor color frame color
+ \-mode type framing style
+ \-monitor monitor progress
+ \-page geometry size and location of an image canvas (setting)
+ \-pointsize value font point size
+ \-profile filename add, delete, or apply an image profile
+ \-quality value JPEG/MIFF/PNG compression level
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-red-primary point chromaticity red primary point
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-scenes range image scene range
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-shadow add a shadow beneath a tile to simulate depth
+ \-size geometry width and height of image
+ \-stroke color color to use when stroking a graphic primitive
+ \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
+ \-texture filename name of texture to tile onto the image background
+ \-thumbnail geometry create a thumbnail of the image
+ \-tile geometry number of tiles per row and column
+ \-title string decorate the montage image with a title
+ \-transparent-color color
+ transparent color
+ \-treedepth value color tree depth
+ \-trim trim image edges
+ \-units type the units of image resolution
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+ \-white-point point chromaticity white point
+
+Image Operators:
+ \-adaptive-sharpen geometry
+ adaptively sharpen pixels; increase effect near edges
+ \-annotate geometry text
+ annotate the image with text
+ \-blur geometry reduce image noise and reduce detail levels
+ \-border geometry surround image with a border of color
+ \-crop geometry preferred size and location of the cropped image
+ \-flatten flatten a sequence of images
+ \-flip flip image in the vertical direction
+ \-flop flop image in the horizontal direction
+ \-frame geometry surround image with an ornamental border
+ \-monochrome transform image to black and white
+ \-polaroid angle simulate a Polaroid picture
+ \-repage geometry size and location of an image canvas (operator)
+ \-resize geometry resize the image
+ \-rotate degrees apply Paeth rotation to the image
+ \-strip strip image of all profiles and comments
+ \-transform affine transform image
+ \-transparent color make this color transparent within the image
+ \-type type image type
+ \-unsharp geometry sharpen the image
+
+Image Sequence Operators:
+ \-coalesce merge a sequence of images
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+In addition to those listed above, you can specify these standard X resources as command line options: \-background, \-bordercolor, \-borderwidth, \-font, \-mattecolor, or \-title.
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/montage.c b/utilities/montage.c
new file mode 100644
index 0000000..d17145f
--- /dev/null
+++ b/utilities/montage.c
@@ -0,0 +1,139 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M M OOO N N TTTTT AAA GGGG EEEEE %
+% MM MM O O NN N T A A G E %
+% M M M O O N N N T AAAAA G GG EEE %
+% M M O O N NN T A A G G E %
+% M M OOO N N T A A GGGG EEEEE %
+% %
+% %
+% Montage Magick Image File Format Image via X11. %
+% %
+% Software Design %
+% John Cristy %
+% July 1992 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Montage creates a composite by combining several separate images. The
+% images are tiled on the composite image with the name of the image
+% optionally appearing just below the individual tile.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=MontageImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}
diff --git a/utilities/stream.1 b/utilities/stream.1
new file mode 100644
index 0000000..048507b
--- /dev/null
+++ b/utilities/stream.1
@@ -0,0 +1,56 @@
+.TH stream 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+stream \- a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats.
+.SH SYNOPSIS
+.TP
+\fBstream\fP [\fIoptions\fP] \fIinput-file\fP \fIoutput-file\fP
+.SH OVERVIEW
+\fBStream\fP is a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats. It writes the pixel components as they are read from the input image a row at a time making \fBstream\fP desirable when working with large images or when you require raw pixel components.
+
+For more information about the stream command, point your browser to file:///usr/local/share/doc/ImageMagick-6.5.5/www/stream.html or http://www.imagemagick.org/script/stream.php.
+.SH DESCRIPTION
+Image Settings:
+ \-authenticate value decrypt image with this password
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-compress type type of pixel compression when writing the image
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-extract geometry extract area from image
+ \-identify identify the format and characteristics of the image
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-limit type value pixel cache resource limit
+ \-map components one or more pixel components
+ \-monitor monitor progress
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-storage-type type pixel storage type
+ \-transparent-color color
+ transparent color
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.5.5/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/stream.1.in b/utilities/stream.1.in
new file mode 100644
index 0000000..24c7bad
--- /dev/null
+++ b/utilities/stream.1.in
@@ -0,0 +1,56 @@
+.TH stream 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
+.SH NAME
+stream \- a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats.
+.SH SYNOPSIS
+.TP
+\fBstream\fP [\fIoptions\fP] \fIinput-file\fP \fIoutput-file\fP
+.SH OVERVIEW
+\fBStream\fP is a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats. It writes the pixel components as they are read from the input image a row at a time making \fBstream\fP desirable when working with large images or when you require raw pixel components.
+
+For more information about the stream command, point your browser to file://@DOCUMENTATION_PATH@/www/stream.html or http://www.imagemagick.org/script/stream.php.
+.SH DESCRIPTION
+Image Settings:
+ \-authenticate value decrypt image with this password
+ \-channel type apply option to select image channels
+ \-colorspace type alternate image colorspace
+ \-compress type type of pixel compression when writing the image
+ \-define format:option
+ define one or more image format options
+ \-density geometry horizontal and vertical density of the image
+ \-depth value image depth
+ \-extract geometry extract area from image
+ \-identify identify the format and characteristics of the image
+ \-interlace type type of image interlacing scheme
+ \-interpolate method pixel color interpolation method
+ \-limit type value pixel cache resource limit
+ \-map components one or more pixel components
+ \-monitor monitor progress
+ \-quantize colorspace reduce colors in this colorspace
+ \-quiet suppress all warning messages
+ \-regard-warnings pay attention to warning messages
+ \-sampling-factor geometry
+ horizontal and vertical sampling factor
+ \-seed value seed a new sequence of pseudo-random numbers
+ \-set attribute value set an image attribute
+ \-size geometry width and height of image
+ \-storage-type type pixel storage type
+ \-transparent-color color
+ transparent color
+ \-verbose print detailed information about the image
+ \-virtual-pixel method
+ virtual pixel access method
+
+Miscellaneous Options:
+ \-debug events display copious debugging information
+ \-help print program options
+ \-log format format of debugging information
+ \-list type print a list of supported option arguments
+ \-version print version information
+
+By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
+.SH SEE ALSO
+ImageMagick(1)
+
+.SH COPYRIGHT
+
+\fBCopyright (C) 1999-2009 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP
diff --git a/utilities/stream.c b/utilities/stream.c
new file mode 100644
index 0000000..86c8500
--- /dev/null
+++ b/utilities/stream.c
@@ -0,0 +1,139 @@
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% SSSSS TTTTT RRRR EEEEE AAA M M %
+% SS T R R E A A MM MM %
+% SSS T RRRR EEE AAAAA M M M %
+% SS T R R E A A M M %
+% SSSSS T R R EEEEE A A M M %
+% %
+% %
+% Stream image to a raw image format. %
+% %
+% Software Design %
+% John Cristy %
+% July 1992 %
+% %
+% %
+% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% dedicated to making software imaging solutions freely available. %
+% %
+% You may not use this file except in compliance with the License. You may %
+% obtain a copy of the License at %
+% %
+% http://www.imagemagick.org/script/license.php %
+% %
+% Unless required by applicable law or agreed to in writing, software %
+% distributed under the License is distributed on an "AS IS" BASIS, %
+% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
+% See the License for the specific language governing permissions and %
+% limitations under the License. %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Stream is a lightweight utility designed to extract pixels from large image
+% files to a raw format using a minimum of system resources. The entire
+% image or any regular portion of the image can be extracted.
+%
+%
+*/
+
+/*
+ Include declarations.
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+#include "wand/MagickWand.h"
+#if defined(__WINDOWS__)
+#include <windows.h>
+#endif
+
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
+% M a i n %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%
+*/
+int main(int argc,char **argv)
+{
+ char
+ *option;
+
+ double
+ elapsed_time,
+ user_time;
+
+ ExceptionInfo
+ *exception;
+
+ ImageInfo
+ *image_info;
+
+ MagickBooleanType
+ regard_warnings,
+ status;
+
+ register long
+ i;
+
+ TimerInfo
+ timer;
+
+ unsigned long
+ iterations;
+
+ MagickCoreGenesis(*argv,MagickTrue);
+ exception=AcquireExceptionInfo();
+ iterations=1;
+ status=MagickFalse;
+ regard_warnings=MagickFalse;
+ for (i=1; i < (long) (argc-1); i++)
+ {
+ option=argv[i];
+ if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))
+ continue;
+ if (LocaleCompare("bench",option+1) == 0)
+ iterations=(unsigned long) atol(argv[++i]);
+ if (LocaleCompare("debug",option+1) == 0)
+ (void) SetLogEventMask(argv[++i]);
+ if (LocaleCompare("regard-warnings",option+1) == 0)
+ regard_warnings=MagickTrue;
+ }
+ GetTimerInfo(&timer);
+ for (i=0; i < (long) iterations; i++)
+ {
+ image_info=AcquireImageInfo();
+ status=StreamImageCommand(image_info,argc,argv,(char **) NULL,exception);
+ if (exception->severity != UndefinedException)
+ {
+ if ((exception->severity > ErrorException) ||
+ (regard_warnings != MagickFalse))
+ status=MagickTrue;
+ CatchException(exception);
+ }
+ image_info=DestroyImageInfo(image_info);
+ }
+ if (iterations > 1)
+ {
+ elapsed_time=GetElapsedTime(&timer);
+ user_time=GetUserTime(&timer);
+ (void) fprintf(stderr,"Performance: %lui %gips %0.3fu %ld:%02ld\n",
+ iterations,1.0*iterations/elapsed_time,user_time,(long)
+ (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
+ }
+ exception=DestroyExceptionInfo(exception);
+ MagickCoreTerminus();
+ return(status == MagickFalse ? 0 : 1);
+}