gm (1) - Linux Manuals
gm: command-line utility to create, edit, compare, convert, or display images
NAME
gm - command-line utility to create, edit, compare, convert, or display images
SYNOPSIS
gm animate [ options ... ] file [ [ options ... ] file ... ]
gm batch [ options ... ] [ script ]
gm benchmark [ options ... ] subcommand
gm compare [ options ... ] reference-image [ options ... ] compare-image [ options ... ]
gm composite [ options ... ] change-image base-image [ mask-image ] output-image
gm conjure [ options ] script.msl [ [ options ] script.msl ]
gm convert [ [ options ... ] [ input-file ... ] [ options ... ] ] output-file
gm display [ options ... ] file ... [ [options ... ]file ... ]
gm identify file [ file ... ]
gm import [ options ... ] file
gm mogrify [ options ... ] file ...
gm montage [ options ... ] file [ [ options ... ] file ... ] output-file
gm time subcommand
DESCRIPTION
animate displays an animation (e.g. a GIF file) on any workstation display running an X server.
batch executes an arbitary number of the utility commands (e.g. convert) in the form of a simple linear batch script in order to improve execution efficiency, and/or to allow use as a subordinate co-process under the control of an arbitrary script or program.
benchmark executes one of the other utility commands (e.g. convert) for a specified number of iterations, or execution time, and reports execution time and other profiling information such as CPU utilization. Benchmark provides various operating modes including executing the command with a varying number of threads, and alternate reporting formats such as comma-separated value (CSV).
compare compares two images and reports difference statistics according to specified metrics and/or outputs an image with a visual representation of the differences. It may also be used to test if images are similar within a particular range and specified metric, returning a truth value to the executing environment.
composite composites images (blends or merges images together) to create new images.
conjure interprets and executes scripts in the Magick Scripting Language (MSL).
convert converts an input file using one image format to an output file with the same or differing image format while applying an arbitrary number of image transformations.
display is a machine architecture independent image processing and display facility. It can display an image on any workstation display running an X server.
identify describes the format and characteristics of one or more image files. It will also report if an image is incomplete or corrupt.
import reads an image from 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.
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.
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.
time executes a subcommand and reports the user, system, and total execution time consumed.
version reports the GraphicsMagick release version, maximum sample-depth, copyright notice, supported features, and the options used while building the software.
The GraphicsMagick utilities recognize the following image formats:
Name Mode Description