1E * ImageMagick - File FormatsB 2 2 2 \  (  S<8 u

D

ImageMagick uses an ASCII string known=as "magick" (e.g. "GIF") to identify fileDformats, algorithms acting as formats, built-in images, and embeddedprofile types.

C


ImageMagick supports reading over@87 major file formats (not including sub-formats). The following<table provides a summary of the supported image formats.

D

SupportedImage Formats


_      # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # # 
F

Format


F

~ Mode


F

Description


F

 Notes


Y

Y ART


Y

W R


Y

H PFS:# 1st Publisher


Y

J FormatC originally used on the Macintosh (MacPaint?) and later used for2 PFS: 1st Publisher clip art.


Y

AVI


Y

W R


Y

M Microsoft. Audio/Visual Interleaved


Y





Y

Y AVS


Y

X RW


Y

G AVS X image


Y





Y

BMP


Y

X RW


Y

M Microsoft! Windows bitmap 


Y





Y

Y CGM


Y

W R


Y

L Computer' Graphics Metafile


Y

L RequiresD ralcgm* to render CGM files.


Y

Z CMYK


Y

X RW


Y

G Raw> cyan, magenta, yellow, and black samples


Y

G SetB -size and -depth to specify the image width,( height, and depth.


Y

Y CUT


Y

W R


Y

F DR Halo


Y





Y

Y DCM


Y

W R


Y

K DigitalJ Imaging and Communications in Medicine (DICOM) image


Y

H UsedF by the medical community for images like X-rays.


Y

Y DCX


Y

X RW


Y

I ZSoft8 IBM PC multi-page Paintbrush image


Y





Y

Y DIB


Y

X RW


Y

M Microsoft7 Windows Device Independent Bitmap


Y

G DIBG is a BMP file without the BMPD header. Used to support embedded images in compound formats like WMF.


Y

Y DPX


Y

X RW


Y

K Digital- Moving Picture Exchange


Y





Y

Y EMF


Y

W R


Y

M Microsoft0 Enhanced Metafile (32-bit)


Y

H Only8 available under Microsoft Windows.


Y

Z EPDF


Y

X RW


Y

P Encapsulated. Portable Document Format


Y





Y

Y EPI


Y

X RW


Y

I Adobe@ Encapsulated PostScript Interchange format


Y

L RequiresW Ghostscript to read.


Y

Y EPS


Y

X RW


Y

I Adobe- Encapsulated PostScript


Y

L RequiresW Ghostscript to read.


Y

Z EPS2


Y

W W


Y

I Adobe6 Level II Encapsulated PostScript


Y

L RequiresW Ghostscript to read.


Y

Z EPS3


Y

W W


Y

I Adobe7 Level III Encapsulated PostScript


Y

L RequiresW Ghostscript to read.


Y

Z EPSF


Y

X RW


Y

I Adobe- Encapsulated PostScript


Y

L RequiresW Ghostscript to read.


Y

Z EPSI


Y

X RW


Y

I Adobe@ Encapsulated PostScript Interchange format


Y

L RequiresW Ghostscript to read.


Y

Y EPT


Y

X RW


Y

I AdobeL Encapsulated PostScript Interchange format with TIFF preview


Y

L RequiresW Ghostscript to read.


Y

Y FAX


Y

X RW


Y

I Group 3 TIFF


Y

G See? TIFF format. Note that FAX machines useB non-square pixels which are 1.5 times wider than they are tallD but computer displays use square pixels so FAX images may appearB to be narrow unless they are explicitly resized using a resize[ specification of "150x100%".


Y

FIG


Y

W R


Y

G FIG% graphics format


Y

L Requiresi TransFig.


Y

FITS


Y

X RW


Y

L Flexible, Image Transport System


Y





Y

Y FPX


Y

X RW


Y

L FlashPix Format


Y

L RequiresJ FlashPix SDK.


Y

Y GIF


Y

X RW


Y

N CompuServe1 Graphics Interchange Format


Y

I 8-bit? RGB PseudoColor with up to 256 palette entires. Specify theB format "GIF87" to write the older version 87a of the format.

Y

H Noted that since Unisys claims a patentA on the LZW algorithm (expiring in the US as of June 2003)@ used by GIF, ImageMagick binary distributions do not include: support for the LZW algorithm so GIF files are written> uncompressed. Users are recommended to use the PNG or JPEGe formats instead, and should consult the UnisysC LZW web page before enabling LZW support.


Y

Z GPLT


Y

W R


Y

K Gnuplot plot files


Y

L RequiresG gnuplot3.5.tar.Z or later.


Y

Z GRAY


Y

X RW


Y

G Raw" gray samples


Y

G UseB -size and -depth to specify the image width,( height, and depth.


Y

Z HPGL


Y

W R


Y

I HP-GL& plotter language


Y

L Requiresx hp2xx-3.2.0.tar.gz


Y

Z HTML


Y

X RW


Y

M HypertextB Markup Language with a client-side image map


Y

H AlsoW known as "HTM". Requires html2ps to read.


Y

Y ICO


Y

W R


Y

M Microsoft icon


Y

H Also0 known as "ICON".


Y

Z JBIG


Y

X RW


Y

I JointJ Bi-level Image experts Group file interchange format


Y

H Also: known as "BIE" and "JBG". Requiresc jbigkit-1.0.tar.gz.


Y

Y JP2


Y

X RW


Y

M JPEG-2000, JP2 File Format Syntax


Y

L Requires] jasper-1.500.0.zip


Y

Y JPC


Y

X RW


Y

M JPEG-2000( Code Stream Syntax


Y

L Requires] jasper-1.500.0.zip


Y

Z JPEG


Y

X RW


Y

I Joint< Photographic Experts Group JFIF format


Y

L RequiresV jpegsrc.v6b.tar.gz


Y

Y MAN


Y

W R


Y

H Unix, reference manual pages


Y

L RequiresB that GNU groff and Ghostcript are installed.


Y

Y MAT


Y

W R


Y

J MATLAB" image format


Y





Y

y MIFF


Y

X RW


Y

J Magick' image file format


Y

Q ImageMagick'sD own image format (with ASCII header) which ensures that no imageD attributes understood by ImageMagick are lost.


Y

Z MONO


Y

X RW


Y

L Bi-levelB bitmap in least-significant-byte first order


Y





Y

MNG


Y

X RW


Y

R Multiple-image& Network Graphics


Y

L RequiresS libpng-1.02.tar.gz or later.


Y

MPEG


Y

X RW


Y

J MotionO Picture Experts Group file interchange format (version 1)


Y

L Requires_ mpeg2vidcodec_v12.tar.gz.


Y

M2V


Y

X RW


Y

J MotionO Picture Experts Group file interchange format (version 2)


Y

L Requires_ mpeg2vidcodec_v12.tar.gz.


Y

Y MPC


Y

X RW


Y

J Magick8 Persistent Cache image file format


Y

G The> native "in-memory" ImageMagick uncompressed fileE format. This file format is identical to that used by ImageMagickF to represent images in memory and is read in "zero time"A via memory mapping. The MPC format is not portable and is notD suitable as an archive format. It is suitable as an intermediateC format for high-performance image processing.

Y

G TheD MPC format requires two files to support one image. When writingE the MPC format, a file with extension ".mpc" is used toB store information about the image, while a file with extensionC “.cache” stores the image pixels. The storage spaceE required by a MPC image (or an image in memory) may be calculatedF by the equation (QuantumDepth*Rows*Columns*5)/8.


Y

Y MSL


Y

X RW


Y

J Magick( Scripting Language


Y

G MSL[ is the XML-based scripting language supported by the conjure utility.


Y

Y MTV


Y

X RW


Y

G MTV- Raytracing image format


Y





Y

Y MVG


Y

X RW


Y

J Magick& Vector Graphics.


Y

G TheE native ImageMagick vector metafile format. A text file containingL vector drawing commands accepted by convert's# -draw option.


Y

Y OTB


Y

X RW


Y

N On-the-air Bitmap


Y





Y

X P7


Y

X RW


Y

H Xv's7 Visual Schnauzer thumbnail format


Y





Y

Z PALM


Y

X RW


Y

H Palm pixmap


Y





Y

Y PBM


Y

X RW


Y

L Portable5 bitmap format (black and white)


Y





Y

Y PCD


Y

X RW


Y

I Photo CD


Y

G TheD maximum resolution written is 768x512 pixels since larger imagesK require huffman compression (which is not supported).


Y

Z PCDS


Y

X RW


Y

I Photo CD


Y

J Decode1 with the sRGB color tables.


Y

Y PCL


Y

W W


Y

F HP+ Page Control Language


Y

G For2 output to HP laser printers.


Y

Y PCX


Y

X RW


Y

I ZSoft, IBM PC Paintbrush file


Y





Y

Y PDB


Y

X RW


Y

H Palm1 Database ImageViewer Format


Y





Y

Y PDF


Y

X RW


Y

L Portable% Document Format


Y

L RequiresW Ghostscript to read.


Y

Y PFA


Y

W R


Y

N Postscript) Type 1 font (ASCII)


Y

K Opening6 as file returns a preview image.


Y

Y PFB


Y

W R


Y

N Postscript* Type 1 font (binary)


Y

K Opening6 as file returns a preview image.


Y

Y PGM


Y

X RW


Y

L Portable1 graymap format (gray scale)


Y





Y

[ PICON


Y

X RW


Y

L Personal Icon


Y





Y

Z PICT


Y

X RW


Y

I Apple3 Macintosh QuickDraw/PICT file


Y





Y

Y PIX


Y

W R


Y

S Alias/Wavefront& RLE image format


Y





Y

PNG


Y

X RW


Y

L Portable& Network Graphics


Y

L RequiresH libpng-1.02.tar.gz. 


Y

Y PNM


Y

X RW


Y

L Portable anymap


Y

G PNM> is a family of formats supporting portable bitmaps (PBM) ,> graymaps (PGM), and pixmaps (PPM). There is no file formatC associated with pnm itself. If PNM is used as the output format> specifier, then ImageMagick automatically selects the most@ appropriate format to represent the image.

Y

G The> default is to write the binary version of the formats. UseS +compress to write the ASCII version of the formats.


Y

Y PPM


Y

X RW


Y

L Portable+ pixmap format (color)


Y





Y

X PS


Y

X RW


Y

I Adobe% PostScript file


Y

L RequiresW Ghostscript to read.


Y

Y PS2


Y

X RW


Y

I Adobe. Level II PostScript file


Y

L RequiresW Ghostscript to read.


Y

Y PS3


Y

X RW


Y

I Adobe/ Level III PostScript file


Y

L RequiresW Ghostscript to read.


Y

Y PSD


Y

X RW


Y

I Adobe+ Photoshop bitmap file


Y





Y

Z PTIF


Y

X RW


Y

K Pyramid6 encoded TIFF


Y

T Multi-resolutionE TIFF containing successively smaller versionsC of the image down to the size of an icon. The desired sub-imageN size may be specified when reading via the -size option.


Y

PWP


Y

W R


Y

K Seattle1 File Works multi-image file


Y





Y

Y RAD


Y

W R


Y

L Radiance image file


Y

L Requires< that ra_ppm from the Radiance software package be installed.


Y

Y RGB


Y

X RW


Y

G Raw2 red, green, and blue samples


Y

G UseB -size and -depth to specify the image width,( height, and depth.


Y

Z RGBA


Y

X RW


Y

G Raw9 red, green, blue, and matte samples


Y

G UseB -size and -depth to specify the image width,( height, and depth.


Y

Y RLA


Y

W R


Y

S Alias/Wavefront image file


Y





Y

Y RLE


Y

W R


Y

H Utah3 Run length encoded image file


Y





Y

SCT


Y

W R


Y

J Scitex- Continuous Tone Picture


Y





Y

SFW


Y

W R


Y

K Seattle& File Works image


Y





Y

Y SGI


Y

X RW


Y

H Irix RGB image


Y





Y

[ SHTML


Y

W W


Y

M Hypertext; Markup Language client-side image map


Y

H Used? to write HTML clickable image maps based on a the output ofA montage or a format which supportsD tiled images such as MIFF.


Y

Y SUN


Y

X RW


Y

G SUN Rasterfile


Y





Y

SVG


Y

X RW


Y

L Scalable% Vector Graphics


Y

L Requires\ libxml2 and freetype-2.E Note that SVG is a very complex specification so support is still# not complete.


Y

Y TGA


Y

X RW


Y

N Truevision! Targa image


Y

H Also] known as formats "ICB", "VDA", and "VST".


Y

Z TIFF


Y

X RW


Y

J Tagged' Image File Format


Y

H Alsow known as "TIF". Requires tiff-v3.5.4.tar.gzs or later. Note that since Unisys claims a patentA on the LZW algorithm (expiring in the US as of June 2003)9 used by LZW-compressed TIFF files, ImageMagick binaryE distributions do not include support for the LZW algorithm so LZWD TIFF files can not be written. Although a patch is available forE libtiff to enable building with LZW support. Users should consultE the Unisys LZW3 web page before applying it. 


Y

Y TIM


Y

W R


Y

G PSX TIM file


Y





Y

TTF


Y

W R


Y

L TrueType font file


Y

L RequiresD freetype 2. Opening as file. returns a preview image.


Y

Y TXT


Y

X RW


Y

G Raw text file


Y





Y

Y UIL


Y

W W


Y

K X-Motif UIL table


Y





Y

Z UYVY


Y

X RW


Y

O Interleaved# YUV raw image


Y

G UseU -size command line option to specify width and height.


Y

[ VICAR


Y

X RW


Y

I VICAR' rasterfile format


Y





Y

Z VIFF


Y

X RW


Y

J Khoros5 Visualization Image File Format


Y





Y

WBMP


Y

X RW


Y

L Wireless bitmap


Y

K Support7 for uncompressed monochrome only.


Y

WMF


Y





Y

K Windows Metafile


Y

L RequiresD libwmf. ByD default, renders WMF files using the dimensions specified by theA metafile header. Use the -density option to adjust the outputE resolution, and thereby adjust the ouput size. The default outputA resolution is 72DPI so "-density 144" results in an: image twice as large as the default.


Y

Y WPG


Y

W R


Y

H Word+ Perfect Graphics File


Y





Y

Y XBM


Y

X RW


Y

E XA Windows system bitmap, black and white only


Y

H UsedH by the X Windows System to store monochrome icons.


Y

Y XCF


Y

W R


Y

H GIMP image


Y





Y

XPM


Y

X RW


Y

E X+ Windows system pixmap


Y

H AlsoB known as "PM". Used by the X Windows System to store" color icons.


Y

Y XWD


Y

X RW


Y

E X0 Windows system window dump


Y

H UsedK by the X Windows System to save/display screen dumps.


Y

Y YUV


Y

X RW


Y

H CCIR 601 4:1:1


Y

G UseU -size command line option to specify width and height.







E

ImageMagick supports a number of image format specifications whichCrefer to images prepared via an algorithm, or input/output targets.9The following table lists these pseudo image formats:

A

PseudoImage Formats


_      # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # #   # # # # 
F

} Tag


F

~ Mode


F

Description


F

 Notes


Y

] CAPTION


Y

W R


Y

I Image caption


Y

[ fixme


Y

_ CLIPBOARD


Y

X RW


Y

K Windows Clipboard


Y

H Only8 available under Microsoft Windows.


Y

] FRACTAL


Y

W R


Y

J Plasma# fractal image


Y





Y

^ GRADIENT


Y

W R


Y

K Gradual7 passing from one shade to another


Y

K ReturnsE a rendered gradient image using the specified image size. Specify5 the desired shading as part of the filename (e.g.~ "gradient:red-blue"or "gradient:#F00-#00F").


Y

_ HISTOGRAM


Y

W W


Y

M Histogram" of the image


Y





Y

[ LABEL


Y

W R


Y

H Text" image format


Y

K SpecifyD the desired text as the filename (e.g. "label:This is aV label").


Y

Y MAP


Y

X RW


Y

L Colormap- intensities and indices


Y

G SetA -depth to set the sample size of the intensities; indices are0 16-bit if colors > 256.


Y

[ MATTE


Y

W W


Y

I MATTE format


Y

I Write only.


Y

Z NULL


Y

X RW


Y

H NULL image


Y

J UsefulD for creating blank tiles with montageA (use "NULL:"). Also useful as an output format when8 evaluating image read performance.


Y

\ PLASMA


Y

W R


Y

J Plasma# fractal image


Y





Y

] PREVIEW


Y

W W


Y

H ShowD a preview an image enhancement, effect, or f/x


Y

K CreatesD a preview montage of images prepared over a parameteric range inA order to assist with parameter selection. Specify the desiredE preview type via the -preview option).


Y

[ PRINT


Y

W W


Y

H Send4 image to your computer printer


Y

H Unix> users may set the PRINTER (for 'lp') or LPDEST (for 'lpr')J environment variables to select the desired printer.


Y

Z SCAN


Y

W R


Y

J Import1 image from a scanner device


Y

L Requires? SANE Specify the. device name and path as the filename (e.g.E "scan:mustek:/dev/scanner").


Y

] STEGANO


Y

W R


Y

R Steganographic image


Y

G UseD -size command line option to specify width, height, and8 offset of the steganographic image


Y

Z TILE


Y

W R


Y

I Tiled image


Y

J CreateB a tiled version of an image at by tiling a image. Use -size toC specify the tiled image size. The image is specified similar toQ "TILE:image.miff".


Y

Y VID


Y

X RW


Y

J Visual% Image Directory


Y

H UsedD to create a thumbnailed directory (tiled thumbnails) of a set of` images which may be used to select images to view via the displayQ program, or saved to a MIFF or SHTML file.


Y

Y WIN


Y

X RW


Y

J SelectI image from or display image to your computer screen


Y

H Only8 supported under Microsoft Windows.


Y

W X


Y

X RW


Y

J SelectI image from or display image to your X server screen


Y

H AlsoS see the import and display programs.


Y

X XC


Y

W R


Y

J Canvas. image of specified color


Y

J UsefulG to create solid color "canvas" images. Use -size? and -depth to specify the image width, height, andd depth. Example XC color specifications include "XC:red"P and "XC:#FF0000".


@


ImageMagick includes several built-in images which may be=referenced when reading as if they were an image format (e.g.;“GRANITE:”);

C

Built-InImages


_     # # #   # # #   # # #  E # # #  g # # #  C
F

} Tag


F

Description


F

 Notes


Y

] GRANITE


Y

K Granite texture.


Y

K Usually. used as a texture image.


Y

Z LOGO


Y

O ImageMagick Logo


Y

MG Thei$ famous wizard.


(Y

Y^ NETSCAPE


aY

sL Netscape% 216 color cube.

t
DY

oL Built-inC image which returns an image containing the colors in the 6x6x6eA color cube used to render colors on 256 color displays by theI{ Netscape 2.0 browser. Most commonly used with the convert/mogrifyiJ -map option to create “web safe” images.


Y

HZ ROSE


Y

eK Picturee of a rose.


0Y

cI PhotoH& taken by Cristy.


/
l



r

E

ImageMagick provides a number of formattEidentifiers which are used to add, remove, and save embedded profiles Efor images which can support embedded profiles. Image types which may 6contain embedded profiles are TIFF, JPEG, and PDF.

"




D

Supported'Embedded Profile Formats

s
_ S m  I  # # # #   # # # #   # # # #  Z # # # #  O # # # #  i # # # #  A # # # #  c # # # #  f
0F

Format


NF

~ Mode


FF

Description

i
EF

 Notes

e
AY

Z 8BIM


nY

TX RW


:Y

TM Photoshop=. resource format (binary)


iY

>



fY

n^ 8BIMTEXT


NY

X RW


ZY

M Photoshopa- resource format (ASCII)


nY

F An> ASCII representation of the 8BIM format.


/Y

fZ APP1


"Y

oX RW


RY

tG RawT- application information

W
Y

e



Y

a^ APP1JPEG


AY

NX RW


PY

FG Raw& JPEG binary data


/Y

rK ProfileA& in JPEG wrapper.


TY

-Y ICC


NY

AX RW


IY

Q International<4 Color Consortium color profile


Y

OH AlsoA known as "ICM". To read, use -profile witht@ convert.


uY

GZ IPTC


fY

nX RW


;Y

sH IPTC( Newsphoto (binary)


tY

aF To` read, use -profile with convert


iY

c^ IPTCTEXT


LY

EX RW


NY

AH IPTC' Newsphoto (ASCII)

f
nY

tF An> ASCII representation of the IPTC format.


tD


Support for some of the formats are delegated to libraries orIexternal programs. The Installation Guiden;describes where to find these distributions and any specialN#configuration options required.

nD

To get a complete listing of which image formats are supported onyour system, type 

C
    convert -list format

d<On some platforms, ImageMagick automatically processes theseBextensions: .gz for Zip compression, .Z for UnixCcompression, .bz2 for block compression, and .pgpaIfor PGP encryption. For example, a PNM image called image.pnm.gzADis automatically uncompressed with the gzip program and theimage is subsequently read. 


G

ImageMagick Home PageImageMagick Home Page:Image manipulation software that works like magic. 

nn