Usage

Installation

Files

Binary releases can be downloaded from the ImageMagick website at http://www.imagemagick.org/script/binary-releases.php.

Installation Instructions

Installation instructions are available for Unix, Mac OS X, iOS and Windows systems. Please refer to http://www.imagemagick.org/script/binary-releases.php for detailed instructions.

Quick Start Guide

ImageMagick includes several command-line tools which serve different purposes. A short overview is given on the ImageMagick Website (http://www.imagemagick.org/script/command-line-tools.php). The most relevant tool for image enhancement however is the “convert” executable. This tool allows you to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Examples on how to use the tool can be found at http://www.imagemagick.org/script/convert.php or in the “Examples” section.

To get started with ImageMagick just take a look at the other examples provided in the usage section of the ImageMagick website (http://www.imagemagick.org/Usage/) or the command-line tool documentation (http://www.imagemagick.org/script/command-line-tools.php).

Documentation

Configuration and Customization

ImageMagick can be configured using command-line parameters. Please refer to the ImageMagick website at http://www.imagemagick.org/script/command-line-tools.php and choose one of the available command-line tools for a complete list of the possible parameters.

Additionally, ImageMagick offers the ability to perform custom image processing tasks from a script written in the Magick Scripting Language (MSL) :

“MSL is XML-based and consists of action statements with attributes. Actions include reading an image, processing an image, getting attributes from an image, writing an image, and more.”

A short example can be found in the “Examples” section.

Workflow Integration

ImageMagick can be integrated into any workflow or application that allows the execution of command-line tools. See section “Configuration” for details on how the tool can be configured using parameters.

Examples

1) Convert

Resizing an image to 50% of its original size while converting it from JPEG to PNG can be achieved with the following command:

convert input.jpg -resize 50% output.png

2) Conjure

This simple MSL-example from the ImageMagick Website resizes a given image to 400×400 pixels:


<?xml version="1.0" encoding="UTF-8"?>
<image>
<read filename="image.gif" />
<get width="base-width" height="base-height" />
<resize geometry="%[dimensions]" />
<get width="resize-width" height="resize-height" />
<print output="Image sized from %[base-width]x%[base-height] to %[resize-width]x%[resize-height].\n" />
<write filename="image.png" />
</image>

It can be executed using the following command:

conjure -dimensions 400x400 incantation.msl

For more examples on how to use ImageMagick, please refer to www.imagemagick.org/Usage/.