diff options
Diffstat (limited to 'www/tools.html')
-rw-r--r-- | www/tools.html | 81 |
1 files changed, 36 insertions, 45 deletions
diff --git a/www/tools.html b/www/tools.html index 50ed0e4..078f3a0 100644 --- a/www/tools.html +++ b/www/tools.html @@ -1,14 +1,15 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<!DOCTYPE html> +<html lang="en"> <head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.16: http://docutils.sourceforge.net/" /> -<title>GraphicsMagick Tools</title> -<meta content="GraphicsMagick is a robust collection of tools and libraries to read, write, and manipulate an image in any of the more popular image formats including GIF, JPEG, PNG, PDF, and Photo CD. With GraphicsMagick you can create GIFs dynamically making it suitable for Web applications. You can also resize, rotate, sharpen, color reduce, or add special effects to an image and save your completed work in the same or differing image format. " name="description" /> -<meta content="GraphicsMagick, Image Magick, Image Magic, PerlMagick, Perl Magick, Perl Magic, image processing, software development, image, software, Magick++" name="keywords" /> -<link rel="stylesheet" href="docutils-articles.css" type="text/css" /> + <meta charset="utf-8"> + <meta content="en" name="language"> + <title>GraphicsMagick Tools</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link media="screen" href="docutils-articles.css" type="text/css" rel="stylesheet"> +<meta content="GraphicsMagick is a robust collection of tools and libraries to read, write, and manipulate an image in any of the more popular image formats including GIF, JPEG, PNG, PDF, and Photo CD. With GraphicsMagick you can create GIFs dynamically making it suitable for Web applications. You can also resize, rotate, sharpen, color reduce, or add special effects to an image and save your completed work in the same or differing image format. " name="description" > +<meta content="GraphicsMagick, Image Magick, Image Magic, PerlMagick, Perl Magick, Perl Magic, image processing, software development, image, software, Magick++" name="keywords" > </head> + <body> <div class="banner"> @@ -21,6 +22,7 @@ </form> </div> + <div class="navmenu"> <ul> <li><a href="index.html">Home</a></li> @@ -34,24 +36,24 @@ <li><a href="reference.html">Reference</a></li> </ul> </div> + <div class="document" id="graphicsmagick-tools"> <h1 class="title">GraphicsMagick Tools</h1> - <!-- -*- mode: rst -*- --> <!-- This text is in reStucturedText format, so it may look a bit odd. --> <!-- See http://docutils.sourceforge.net/rst.html for details. --> <div class="contents local topic" id="contents"> <ul class="simple"> -<li><a class="reference internal" href="#animate-animate-a-sequence-of-images" id="id2">Animate: animate a sequence of images</a></li> -<li><a class="reference internal" href="#compare-compare-two-images-using-statistics-and-or-visual-differencing" id="id3">Compare: compare two images using statistics and/or visual differencing</a></li> -<li><a class="reference internal" href="#composite-composite-images-together" id="id4">Composite: composite images together</a></li> -<li><a class="reference internal" href="#conjure-execute-a-magick-scripting-language-msl-xml-script" id="id5">Conjure: execute a Magick Scripting Language (MSL) XML script</a></li> -<li><a class="reference internal" href="#convert-convert-an-image-or-sequence-of-images" id="id6">Convert: convert an image or sequence of images</a></li> -<li><a class="reference internal" href="#display-display-an-image-on-a-workstation-running-x" id="id7">Display: display an image on a workstation running X</a></li> -<li><a class="reference internal" href="#identify-describe-an-image-or-image-sequence" id="id8">Identify: describe an image or image sequence</a></li> -<li><a class="reference internal" href="#import-capture-an-application-or-x-server-screen" id="id9">Import: capture an application or X server screen</a></li> -<li><a class="reference internal" href="#mogrify-transform-an-image-or-sequence-of-images" id="id10">Mogrify: transform an image or sequence of images</a></li> -<li><a class="reference internal" href="#montage-create-a-composite-image-in-a-grid-from-separate-images" id="id11">Montage: create a composite image (in a grid) from separate images</a></li> +<li><p><a class="reference internal" href="#animate-animate-a-sequence-of-images" id="id2">Animate: animate a sequence of images</a></p></li> +<li><p><a class="reference internal" href="#compare-compare-two-images-using-statistics-and-or-visual-differencing" id="id3">Compare: compare two images using statistics and/or visual differencing</a></p></li> +<li><p><a class="reference internal" href="#composite-composite-images-together" id="id4">Composite: composite images together</a></p></li> +<li><p><a class="reference internal" href="#conjure-execute-a-magick-scripting-language-msl-xml-script" id="id5">Conjure: execute a Magick Scripting Language (MSL) XML script</a></p></li> +<li><p><a class="reference internal" href="#convert-convert-an-image-or-sequence-of-images" id="id6">Convert: convert an image or sequence of images</a></p></li> +<li><p><a class="reference internal" href="#display-display-an-image-on-a-workstation-running-x" id="id7">Display: display an image on a workstation running X</a></p></li> +<li><p><a class="reference internal" href="#identify-describe-an-image-or-image-sequence" id="id8">Identify: describe an image or image sequence</a></p></li> +<li><p><a class="reference internal" href="#import-capture-an-application-or-x-server-screen" id="id9">Import: capture an application or X server screen</a></p></li> +<li><p><a class="reference internal" href="#mogrify-transform-an-image-or-sequence-of-images" id="id10">Mogrify: transform an image or sequence of images</a></p></li> +<li><p><a class="reference internal" href="#montage-create-a-composite-image-in-a-grid-from-separate-images" id="id11">Montage: create a composite image (in a grid) from separate images</a></p></li> </ul> </div> <div class="section" id="animate-animate-a-sequence-of-images"> @@ -67,8 +69,7 @@ differencing method (assign, threshold, tint, xor). The statistical comparison produces a textual display of metric values while the visual differencing method writes a difference image with the differences annotated using the specified algorithm. For example:</p> -<pre class="literal-block"> -% gm convert input.jpg -blur 0x1.5 output.jpg +<pre class="literal-block">% gm convert input.jpg -blur 0x1.5 output.jpg % gm compare -metric MSE input.jpg output.jpg Image Difference (MeanSquaredError): Normalized Absolute @@ -76,8 +77,7 @@ Image Difference (MeanSquaredError): Red: 0.0014374614 94.2 Green: 0.0014396270 94.3 Blue: 0.0014464548 94.8 - Total: 0.0014411811 94.4 -</pre> + Total: 0.0014411811 94.4</pre> </div> <div class="section" id="composite-composite-images-together"> <h1><a class="toc-backref" href="#id4">Composite: composite images together</a></h1> @@ -87,8 +87,7 @@ Image Difference (MeanSquaredError): <h1><a class="toc-backref" href="#id5">Conjure: execute a Magick Scripting Language (MSL) XML script</a></h1> <p><a class="reference external" href="conjure.html">Conjure</a> interprets and executes scripts in the Magick Scripting Language (MSL). The interpreter is called conjure and here is an example script:</p> -<pre class="literal-block"> -<?xml version="1.0" encoding="UTF-8"?> +<pre class="literal-block"><?xml version="1.0" encoding="UTF-8"?> <image size="400x400" > <read filename="image.gif" /> <get width="base-width" height="base-height" /> @@ -98,12 +97,9 @@ Image Difference (MeanSquaredError): "Image sized from %[base-width]x%[base-height] to %[width]x%[height].\n" /> <write filename="image.png" /> -</image> -</pre> +</image></pre> <p>which is invoked like</p> -<pre class="literal-block"> -conjure -dimensions 400x400 incantation.msl -</pre> +<pre class="literal-block">conjure -dimensions 400x400 incantation.msl</pre> <p>All operations closely follow the key/value pairs defined in the <a class="reference external" href="perl.html">PerlMagick</a> documentation, unless otherwise noted.</p> </div> @@ -118,9 +114,7 @@ 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. For example:</p> -<pre class="literal-block"> -% gm convert input.jpg -rotate 90 rotated.tiff -</pre> +<pre class="literal-block">% gm convert input.jpg -rotate 90 rotated.tiff</pre> </div> <div class="section" id="display-display-an-image-on-a-workstation-running-x"> <h1><a class="toc-backref" href="#id7">Display: display an image on a workstation running X</a></h1> @@ -138,10 +132,8 @@ and height of the image, whether the image is colormapped or not, the number of colors in the image, 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. For example:</p> -<pre class="literal-block"> -% gm identify tiger-1200-rgb16.tiff -tiger-1200-rgb16.tiff TIFF 9083x9450+0+0 DirectClass 16-bit 491.2M 0.000u 0:01 -</pre> +<pre class="literal-block">% gm identify tiger-1200-rgb16.tiff +tiger-1200-rgb16.tiff TIFF 9083x9450+0+0 DirectClass 16-bit 491.2M 0.000u 0:01</pre> </div> <div class="section" id="import-capture-an-application-or-x-server-screen"> <h1><a class="toc-backref" href="#id9">Import: capture an application or X server screen</a></h1> @@ -154,9 +146,7 @@ drag, a rectangle will form which expands and contracts as the mouse moves. To save the portion of the screen defined by the rectangle, just release the button. The keyboard bell is rung once at the beginning of the screen capture and twice when it completes. For example:</p> -<pre class="literal-block"> -% gm import capture.tiff -</pre> +<pre class="literal-block">% gm import capture.tiff</pre> </div> <div class="section" id="mogrify-transform-an-image-or-sequence-of-images"> <h1><a class="toc-backref" href="#id10">Mogrify: transform an image or sequence of images</a></h1> @@ -168,9 +158,7 @@ once, and overwrites the input files by default. However, <a class="reference ex also be used to convert file formats, and send modified files to another directory. For example, the following reads several JPEG files and writes a rotated version of them in TIFF format:</p> -<pre class="literal-block"> -% gm mogrify -rotate 90 -format tiff image1.jpg image2.jpg image3.jpg -</pre> +<pre class="literal-block">% gm mogrify -rotate 90 -format tiff image1.jpg image2.jpg image3.jpg</pre> </div> <div class="section" id="montage-create-a-composite-image-in-a-grid-from-separate-images"> <h1><a class="toc-backref" href="#id11">Montage: create a composite image (in a grid) from separate images</a></h1> @@ -180,9 +168,12 @@ properties optionally appearing just below the individual tile.</p> </div> </div> + <hr class="docutils"> <div class="document"> - <p><a href="Copyright.html">Copyright</a> © GraphicsMagick Group 2002 - 2022<!--SPONSOR_LOGO--></p> + <p><a href="Copyright.html">Copyright</a> © GraphicsMagick Group 2002 - 2023<!--SPONSOR_LOGO--></p> +</div> + </div> </body> </html> |