The package includes tools for image conversion, annotation, compositing, animation, and creating montages. ImageMagick can read and write many of the more popular image formats (e.g. JPEG, TIFF, PNM, XPM, Photo CD, etc.).
For a full description of the ImageMagick package and the included modules
In order to test the following examples it is assumed that the ImageMagick source directory (not available at all dv.xx.dlr.de) is the current directory (/usr/local/contrib/src/ImageMagick).
In order to display an image on any workstation or terminal running X use the display command, e.g.
display images/aquarium.miffor
display -monochrome -dither images/aquarium.miffIf the image colors are not correct use this command:
display -visual default images/aquarium.miffTo display an image of a cockatoo specified with a World Wide Web (WWW) uniform resource locator (URL), use
display ftp://wizards.dupont.com/images/cockatoo.jpg display http://www.wizards.dupont.com/cristy/images/magick.pngYou can find other example images in the 'images' directory.
Be sure to read the manual pages for the
utilities and the official ImageMagick WWW page.The ImageMagick utilities read and write MIFF images. Refer to the end of this message for more information about MIFF. Use convert to convert images to and from the MIFF format.
ImageMagick utilities recognizes many image formats including popular formats like TIFF, JPEG, PNG, PDF, Photo CD, and GIF. and for your convenience automatically converts most of these alien image format to MIFF at execution time. However, the MIFF image format has several advantages over most image formats (i.e. runlength encoding, digital signature on an image colormap, etc.). ImageMagick is designed to exploit these advantages. Whenever possible convert an alien image format to the MIFF format before using the various ImageMagick programs.
Other formats are also recognized. See CONVERT(1) for a list of valid image formats. You can specify a particular image format by prefixing the image filename with the image type and a colon (i.e. ps:image.ps).
mogrify -colors 256 scenes/dna.[0-9]*Note, the image sequence in ImageMagick.animation.tar.Z (remark: on dv.go.dlr.de the contents of ImageMagick.animation.tar.Z is soft-linked into the scenes directory) is already reduced. Alternatively, you can use a Standard Colormap; or a static, direct, or true color visual. You can define a Standard Colormap with `xstdcmap'. For example, to use the "best" Standard Colormap, type:
xstdcmap -best animate -map best scenes/dna.[0-9]*or to use a true color visual:
animate -visual truecolor scenes/dna.[0-9]*Image filenames can appear in any order on the command line if the scene keyword is specified in the MIFF image. Otherwise the images display in the order they appear on the command line. A scene is specified when converting from another image format to MIFF by using the "scene" option with any filter. Be sure to choose a scene number other than zero. For example, to convert a TIFF image to a MIFF image as scene #2, type:
convert -scene 2 image.tiff image.miff
display -visual 0x???? image.miffOn the Stardent put
*installColormap: onin your X resource file.
Some Digital and Tektronix servers have a bug. When converting from LSBFirst to MSBFirst X server (or visa-versa) you may get the error
Illegal unit size: 8 found in routine: _normalizeimagebits
display -visual pseudocolor image.miff
cat header binary_image | display -write image.miff -For example, suppose you have a raw red, green, blue image file on disk that is 640 by 480. The header file would look like this:
id=ImageMagick columns=640 rows=480 :The image file would have red, green, blue tuples (rgbrgbrgb...).
Refer to the display manual page for more details.