<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=us-ascii"> <title>GraphicsMagick GM Utility</title> <style type=text/css> <!-- @page { size: 8.5in 11in } TD P { color: #000000; font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 12pt } P { color: #000000; font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 12pt } A:link { color: #00B04F } A:visited { color: #007B37 } --> </style> </head> <body LANG="en-US" TEXT="#000000" LINK="#00B04F" VLINK="#007B37" BGCOLOR="#ffffff"> <a name="top"></a> <table border=0 cellpadding=10 cellspacing=0 style="margin-top:-17px" width="100%"><tr><td> <br> <br> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="compare"></a>gm compare </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-top"></a>NAME </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> compare - compare two images. </td></tr></table> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-contents"></a>Contents </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <dl> <dt> <a href="#comp-syno">Synopsis</a> </dt> <dt> <a href="#comp-desc">Description</a> </dt> <dt> <a href="#comp-exam">Examples</a> </dt> <dt> <a href="#comp-opti">Options</a> </dt> <dt> <a href="#comp-envi">Environment</a> </dt> <dt> <a href="#comp-file">Configuration Files</a> </dt> <dt> <a href="#auth">Authors</a> </dt> <dt> <a href="#copy">Copyright</a> </dt> </dl> </td></tr></table> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-syno"></a>Synopsis </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <p> <strong>compare</strong> <strong>[</strong> <em>options</em> <strong>... ]</strong> <em>reference-image</em> <strong>[</strong> <em>options</em> <strong>... ]</strong> <em>compare-image</em> <strong>[</strong> <em>options</em> <strong>... ]</strong> </td></tr></table> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-desc"></a>Description </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <p> <strong>compare</strong> compares two similar images using a specified statistical method (see <strong>-metric</strong>) and/or by writing a difference image (<strong>-file</strong>), with the altered pixels annotated using a specified method (see <strong>-highlight-style</strong>) and color (see <strong>-highlight-color</strong>). <p><em>Reference-image</em> is the original image and <em>compare-image</em> is the (possibly) altered version, which should have the same dimensions as <em>reference-image</em>. </td></tr></table> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-exam"></a>Examples </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <p> To compare two images using Mean Square Error (MSE) statistical analysis use: <pre> compare -metric mse original.miff compare.miff </pre> <p> To create an annotated difference image use: <pre> compare -algorithm annotate -highlight-color purple -file diff.miff original.miff compare.miff </pre> </td></tr></table> <p> <i><a href="#top">Back to Contents</a></i> </p> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-opti"></a>Options </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <p> Options are processed in command line order. Any option you specify on the command line remains in effect only for the image that follows. All options are reset to their default values after each image is read. <p> For a more detailed description of each option, see Options, above. <a href="GraphicsMagick.html"><em>GraphicsMagick(1)</em></a>. <br> <br> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-authenticate">-authenticate</a> <i><string></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>decrypt image with this password</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-colorspace">-colorspace</a> <i><value></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>the type of colorspace</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> -debug <i><events></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>enable debug printout</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-define">-define</a> <i><key></i>{<i>=<value></i>}<i>,...</i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>add coder/decoder specific options</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-density">-density</a> <i><width>x<height></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>horizontal and vertical resolution in pixels of the image</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-depth">-depth</a> <i><value></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>depth of the image</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-display">-display</a> <i><host:display[.screen]></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>specifies the X server to contact</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-endian">-endian</a> <i><type></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>specify endianness (MSB, LSB, or Native) of image</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-file">-file</a> <i><filename></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>write annotated difference image to file</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> -help </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>print usage instructions</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-highlight-color">-highlight-color</a> <i><color></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>pixel annotation color</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-highlight-style">-highlight-style</a> <i><style></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>pixel annotation style</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-interlace">-interlace</a> <i><type></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>the type of interlacing scheme</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-limit">-limit</a> <i><type> <value></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Disk, File, Map, Memory, Pixels, or Threads resource limit</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-log">-log</a> <i><string></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Specify format for debug log</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-matte">-matte</a> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>store matte channel if the image has one</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-maximum-error">-maximum-error</a> <i><limit></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>specifies the maximum amount of total image error</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> -monitor </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>show progress indication</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-sampling-factor">-sampling-factor</a> <i><horizontal_factor>x<vertical_factor></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>chroma subsampling factors</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-size">-size</a> <i><width>x<height></i>{<i>+offset</i>}<i></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>width and height of the image</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-type">-type</a> <i><type></i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>the image type</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-verbose">-verbose</a> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>print detailed information about the image</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> <a href="GraphicsMagick.html#details-version">-version</a> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>print GraphicsMagick version string</td></tr></table> <p> For a more detailed description of each option, see Options, above. <a href="GraphicsMagick.html"><em>GraphicsMagick(1)</em></a>. <br> <br> </td></tr></table> <p> <i><a href="#top">Back to Contents</a></i> </p> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-envi"></a>Environment </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> COLUMNS </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Output screen width. Used when formatting text for the screen. Many Unix systems keep this shell variable up to date, but it may need to be explicitly exported in order for GraphicsMagick to see it.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> DISPLAY </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>X11 display ID (host, display number, and screen in the form hostname:display.screen).</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> HOME </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Location of user's home directory. GraphicsMagick searches for configuration files in $HOME/.magick if the directory exists. See <strong>MAGICK_CODER_MODULE_PATH</strong>, <strong>MAGICK_CONFIGURE_PATH</strong>, and <strong>MAGICK_FILTER_MODULE_PATH</strong> if more flexibility is needed.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_CODER_STABILITY </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>The minimum coder stability level before it will be used. The available levels are <strong>PRIMARY</strong>, <strong>STABLE</strong>, and <strong>UNSTABLE</strong>. The default minimum level is <strong>UNSTABLE</strong>, which means that all available coders will be used. The purpose of this option is to reduce the security exposure (or apparent complexity) due to the huge number of formats supported. Coders at the <strong>PRIMARY</strong> level are commonly used formats with very well maintained implementations. Coders at the <strong>STABLE</strong> level are reasonably well maintained but represent less used formats. Coders at the <strong>UNSTABLE</strong> level either have weak implementations, the file format itself is weak, or the probability the coder will be needed is vanishingly small.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_CODER_MODULE_PATH </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Search path to use when searching for image format coder modules. This path allows the user to arbitrarily extend the image formats supported by GraphicsMagick by adding loadable modules to an arbitrary location rather than copying them into the GraphicsMagick installation directory. The formatting of the search path is similar to operating system search paths (i.e. colon delimited for Unix, and semi-colon delimited for Microsoft Windows). This user specified search path is used before trying the default search path.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_CONFIGURE_PATH </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Search path to use when searching for configuration (.mgk) files. The formatting of the search path is similar to operating system search paths (i.e. colon delimited for Unix, and semi-colon delimited for Microsoft Windows). This user specified search path is used before trying the default search path.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_DEBUG </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Debug options (see <strong>-debug</strong> for details)</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_FILTER_MODULE_PATH </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Search path to use when searching for filter process modules (invoked via <strong>-process</strong>). This path allows the user to arbitrarily extend GraphicsMagick's image processing functionality by adding loadable modules to an arbitrary location rather than copying them into the GraphicsMagick installation directory. The formatting of the search path is similar to operating system search paths (i.e. colon delimited for Unix, and semi-colon delimited for Microsoft Windows). This user specified search path is used before trying the default search path.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_HOME </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Path to top of GraphicsMagick installation directory. Only observed by "uninstalled" builds of GraphicsMagick which do not have their location hard-coded or set by an installer.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_MMAP_READ </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>If <strong>MAGICK_MMAP_READ</strong> is set to <strong>TRUE</strong>, GraphicsMagick will attempt to memory-map the input file for reading. This usually substantially improves read performance if the file has recently been read. However, testing shows that performance may be reduced for files accessed for the first time via a network since some operating systems failed to do read-ahead over network mounts for memory mapped files.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_MMAP_WRITE </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>If <strong>MAGICK_MMAP_WRITE</strong> is set to <strong>TRUE</strong>, GraphicsMagick will attempt to memory-map the output file for writing. This is an experimental feature (which is currently broken). Write performance is usually somewhat worse when using this approach rather than the default one.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_IO_FSYNC </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>If <strong>MAGICK_IO_FSYNC</strong> is set to <strong>TRUE</strong>, then GraphicsMagick will request that the output file is fully flushed and synchronized to disk when it is closed. This incurs a performance penalty, but has the benefit that if the power fails or the system crashes, the file should be valid on disk. If image files are referenced from a database, then this option helps assure that the files referenced by the database are valid.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_IOBUF_SIZE </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>The amount of I/O buffering (in bytes) to use when reading and writing encoded files. The default is 16384, which is observed to work well for many cases. The best value for a local filesystem is usually the the native filesystem block size (e.g. 4096, 8192, or even 131,072 for ZFS) in order to minimize the number of physical disk I/O operations. I/O performance to files accessed over a network may benefit significantly by tuning this option. Larger values are not necessarily better (they may be slower!), and there is rarely any benefit from using values larger than 32768. Use convert's <strong>-verbose</strong> option in order to evaluate read and write rates in pixels per second while keeping in mind that the operating system will try to cache files in RAM.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_LIMIT_DISK </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Maximum amount of disk space allowed for use by the pixel cache.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_LIMIT_FILES </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Maximum number of open files.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_LIMIT_MAP </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Maximum size of a memory map.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_LIMIT_MEMORY </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Maximum amount of memory to allocate from the heap.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> MAGICK_TMPDIR </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Path to directory where GraphicsMagick should write temporary files. The default is to use the system default, or the location set by <strong>TMPDIR</strong>.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> TMPDIR </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>For POSIX-compatible systems (Unix-compatible), the path to the directory where all applications should write temporary files. Overridden by <strong>MAGICK_TMPDIR</strong> if it is set.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> TMP <i>or TEMP</i> </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>For Microsoft Windows, the path to the directory where applications should write temporary files. Overridden by <strong>MAGICK_TMPDIR</strong> if it is set.</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> OMP_NUM_THREADS </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>As per the OpenMP standard, this specifies the number of threads to use in parallel regions. Some compilers default the number of threads to use to the number of processor cores available while others default to just one thread. See the OpenMP specification for other standard adjustments and your compiler's manual for vendor-specific settings.</td></tr></table> </td></tr></table> <p> <i><a href="#top">Back to Contents</a></i> </p> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="comp-file"></a>Configuration Files </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <p>GraphicsMagick uses a number of XML format configuration files: <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> colors.mgk </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>colors configuration file</td></tr></table> <pre> <?xml version="1.0"?> <colormap> <color name="AliceBlue" red="240" green="248" blue="255" compliance="SVG, X11, XPM" /> </colormap> </pre> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> delegates.mgk </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>delegates configuration file</td></tr></table> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> log.mgk </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>logging configuration file</td></tr></table> <pre> <?xml version="1.0"?> <magicklog> <log events="None" /> <log output="stdout" /> <log filename="Magick-%d.log" /> <log generations="3" /> <log limit="2000" /> <log format="%t %r %u %p %m/%f/%l/%d:\n %e" /> </magicklog> </pre> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> modules.mgk </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>loadable modules configuration file</td></tr></table> <pre> <?xml version="1.0"?> <modulemap> <module magick="8BIM" name="META" /> </modulemap> </pre> <table BORDER=0 WIDTH="94%"> <tr> <td width="3%"><br></td> <td ALIGN=LEFT BGCOLOR="#FFFFFF"> <img SRC="images/right_triangle_option.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial" ><font color="#00B04F"><font size="+1"> type.mgk </font></font></font></b></td></tr></table> <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>master type (fonts) configuration file</td></tr></table> <pre> <?xml version="1.0"?> <typemap> <<strong></strong>include file="type-windows.mgk" /> <type name="AvantGarde-Book" fullname="AvantGarde Book" family="AvantGarde" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/local/share/ghostscript/fonts/a010013l.afm" glyphs="/usr/local/share/ghostscript/fonts/a010013l.pfb" /> </typemap> </pre> </td></tr></table> <p> <i><a href="#top">Back to Contents</a></i> </p> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="auth"></a>Authors </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <p> <em> John Cristy,<br> Bob Friesenhahn,<br> Glenn Randers-Pehrson,<br> William Radcliff,<br> Leonard Rosenthol. </em> <br> <br> </td></tr></table> <p> <i><a href="#top">Back to Contents</a></i> </p> <table BORDER=0 WIDTH="100%"> <tr> <td ALIGN=LEFT bgcolor="#FFFFFF"><img SRC="images/right_triangle.png" ALT=">" BORDER=0 height=14 width=15><b><font face="Helvetica, Arial"><font color="#00B04F"><font size="+1"> <a NAME="copy"></a>Copyright </font></font></font></b></td></tr></table> <table width="94%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="3%"><br></td><td> <p> <strong>Copyright (C) 2002 - 2010 GraphicsMagick Group, an organization dedicated to making software imaging solutions freely available.</strong> <p> <strong>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ("GraphicsMagick"), to deal in GraphicsMagick without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of GraphicsMagick, and to permit persons to whom GraphicsMagick is furnished to do so, subject to the following conditions:</strong> <p> <strong>The above copyright notice and this permission notice shall be included in all copies or substantial portions of GraphicsMagick.</strong> <p> <strong>The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall GraphicsMagick Group be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with GraphicsMagick or the use or other dealings in GraphicsMagick.</strong> <p> <strong>Except as contained in this notice, the name of the GraphicsMagick Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in GraphicsMagick without prior written authorization from the GraphicsMagick Group.</strong> <p> <strong>Additional copyrights and licenses apply to this software. You should have received a copy of Copyright.txt with this package, which describes additional copyrights and licenses which apply to this software; otherwise see http://www.graphicsmagick.org/Copyright.html.</strong> </td></tr></table> <p> <i><a href="#top">Back to Contents</a></i> </p> <HR> [<a href="index.html">Home</a>] [<a href="utilities.html">Utilities Index</a>] <BR> <p align=center <a href="Copyright.html">Copyright © GraphicsMagick Group 2002 - 2011</a></p></td> </tr></table> </body></html>