convert

機能

画像ファイルのフォーマット変換・画像処理

起動方法

    convert オプション 入力ファイル 出力ファイル

機能

各種フォーマットの画像ファイルを他のフォーマットに変換したり、 様々な画像処理を行なう。

画像フォーマットの種類

読み書きできる画像フォーマットは以下の通り。

8BIM*
Photoshop resource format (rw-)
AVS*
AVS X image (rw+)
BMP*
Microsoft Windows bitmap image (rw+)
BMP24*
Microsoft Windows 24-bit bitmap image (rw+)
CMYK*
Raw cyan, magenta, yellow, and black bytes (rw-)
DCM*
Digital Imaging and Communications in Medicine image (r--)
DCX*
ZSoft IBM PC multi-page Paintbrush (rw+)
DIB*
Microsoft Windows bitmap image (rw+)
EPDF*
Encapsulated Portable Document Format (rw-)
EPI*
Adobe Encapsulated PostScript Interchange format (r--)
EPS*
Adobe Encapsulated PostScript (rw-)
EPS2*
Adobe Level II Encapsulated PostScript (rw-)
EPSF*
Adobe Encapsulated PostScript (rw-)
EPSI*
Adobe Encapsulated PostScript Interchange format (rw-)
EPT*
Adobe Encapsulated PostScript with TIFF preview (rw-)
FAX*
Group 3 FAX (rw+)
FITS*
Flexible Image Transport System (rw-)
G3*
Group 3 FAX (r--)
GIF*
CompuServe graphics interchange format (rw+)
GIF87*
CompuServe graphics interchange format (version 87a) (rw-)
GRADATION*
Gradual passing from one shade to another (r--)
GRANITE*
Granite texture (rw-)
GRAY*
Raw gray bytes (rw+)
H*
Internal format (rw-)
HISTOGRAM*
Histogram of the image (rw-)
HTM*
Hypertext Markup Language and a client-side image map (-w-)
HTML*
Hypertext Markup Language and a client-side image map (-w-)
ICB*
Truevision Targa image (rw+)
ICC*
ICC Color Profile (rw-)
ICO*
Microsoft icon (r--)
IMPLICIT*
Internal format (---)
IPTC*
IPTC Newsphoto (rw-)
JPG*
Joint Photographic Experts Group JFIF format (rw-)
JPEG24*
Joint Photographic Experts Group JFIF format (rw-)
JPEG*
Joint Photographic Experts Group JFIF format (rw-)
LABEL*
Text image format (r--)
LOGO*
ImageMagick Logo (rw-)
MAP*
Colormap intensities and indices (rw-)
MATTE*
Matte format (rw+)
MIFF*
Magick image format (rw+)
MNG*
Multiple-image Network Graphics (rw+)
MONO*
Bi-level bitmap in least-significant-byte first order (rw-)
MTV*
MTV Raytracing image format (rw+)
NETSCAPE*
Netscape 216 color cube (rw-)
NULL*
NULL image (r--)
P7*
Xv thumbnail format (rw+)
PBM*
Portable bitmap format (black and white) (rw+)
PCD*
Photo CD (rw-)
PCDS*
Photo CD (rw-)
PCL*
Page Control Language (rw-)
PCT*
Apple Macintosh QuickDraw/PICT (-w-)
PCX*
ZSoft IBM PC Paintbrush (rw-)
PDF*
Portable Document Format (rw+)
PIC*
Apple Macintosh QuickDraw/PICT (rw-)
PGM*
Portable graymap format (gray scale) (rw+)
PICT*
Apple Macintosh QuickDraw/PICT (rw-)
PICT24*
24-bit Apple Macintosh QuickDraw/PICT (rw-)
PIX*
Alias/Wavefront RLE image format (r--)
PLASMA*
Plasma fractal image (r--)
PM*
X Windows system pixmap (color) (rw-)
PNG*
Portable Network Graphics (rw-)
PNM*
Portable anymap (rw+)
PPM*
Portable pixmap format (color) (rw+)
PREVIEW*
Show a preview an image enhancement, effect, or f/x (-w-)
PS*
Adobe PostScript (rw+)
PS2*
Adobe Level II PostScript (-w+)
PS3*
Adobe Level III PostScript (-w+)
PSD*
Adobe Photoshop bitmap (rw-)
PTIF
Pyramid encoded TIFF (rw+)
PWP*
Seattle Film Works (r--)
RAS*
SUN Rasterfile (rw+)
RGB*
Raw red, green, and blue bytes (rw+)
RGBA*
Raw red, green, blue, and matte bytes (rw+)
RLA*
Alias/Wavefront image (r--)
RLE*
Utah Run length encoded image (r--)
SCT*
Scitex HandShake (r--)
SFW*
Seattle Film Works (r--)
SGI*
Irix RGB image (rw+)
SHTML*
Hypertext Markup Language and a client-side image map (-w-)
STEGANO*
Steganographic image (r--)
SUN*
SUN Rasterfile (rw+)
TEXT*
Raw text (rw+)
TGA*
Truevision Targa image (rw+)
TIF
Tagged Image File Format (rw+)
TIFF
Tagged Image File Format (rw+)
TIFF24
24-bit Tagged Image File Format (rw+)
TILE*
Tile image with a texture (r--)
TIM*
PSX TIM (r--)
TTF*
TrueType font (r--)
TXT*
Raw text (rw+)
UIL*
X-Motif UIL table (rw-)
UYVY*
16bit/pixel interleaved YUV (rw-)
VDA*
Truevision Targa image (rw+)
VICAR*
VICAR rasterfile format (rw-)
VID*
Visual Image Directory (rw+)
VIFF*
Khoros Visualization image (rw+)
VST*
Truevision Targa image (rw+)
WBMP*
Wireless Bitmap (level 0) image (rw-)
X*
X Image (rw-)
XBM*
X Windows system bitmap (black and white) (rw-)
XC*
Constant image of X server color (r--)
XPM*
X Windows system pixmap (color) (rw-)
XV*
Khoros Visualization image (rw+)
XWD*
X Windows system window dump (color) (rw-)
YUV*
CCIR 601 4:1:1 (rw-)
r
読み込み可能
w
書き込み可能
+
複数ファイルを扱うことが可能
*
ネイティブに複数ファイルを扱うことが可能

オプション

-adjoin
複数のファイルをひとつのファイルにまとめる。
複数のファイルをサポートしているフォーマットが出力ファイルになっていることが必要。
convert -adjoin tmp1.jpg tmp2.jpg tmp3.jpg adjoin.tga
-antialias
アンチエイリアシングを行なう。
convert -antialias $pic3 antialias.jpg
image sample of antialias
-append
append an image sequence
convert -append $pic1 $pic2 $pic3 append.jpg
image sample of append
-average
average an image sequence
convert -average $pic1 $pic2 average.jpg
image sample of average
-blur factor
apply a filter to blur the image
convert -blur 80 $pic1 blur.jpg
image sample of blur
-border geometry
surround image with a border of color
convert -border 10x5 $pic1 border.jpg
image sample of border
-bordercolor color
border color
convert -bordercolor '#ff0000' -border 10x5 $pic1 bordercolor.jpg
image sample of bordercolor
-box color
color for annotation bounding box
image sample of box
-cache threshold
megabytes of memory available to the pixel cache
image sample of cache
-charcoal factor
simulate a charcoal drawing
image sample of charcoal
-coalesce
merge a sequence of images
image sample of coalesce
-colorize value
colorize the image with the pen color
image sample of colorize
-colors value
preferred number of colors in the image
convert -colors 4 $pic1 colors.jpg
image sample of colors
-colorspace type
alternate image colorspace
convert -colorspace YUV -colors 4 $pic1 colorspace.jpg
image sample of colorspace
-comment string
annotate image with comment
convert -comment "%f %wx%h %bkbytes" $pic1 comment.jpg
image sample of comment
-compress type
type of image compression
image sample of compress
-contrast
enhance or reduce the image contrast
convert -contrast $pic1 contrast.jpg
image sample of contrast
-crop geometry
preferred size and location of the cropped image
convert -crop 100x100+50+50 $pic1 crop.jpg
image sample of crop
-cycle amount
cycle the image colormap
convert -cycle 2 $pic1 cycle.jpg
image sample of cycle
-delay value
display the next image after pausing
-deconstruct
break down an image sequence into constituent parts
image sample of deconstruct
-density geometry
vertical and horizontal density of the image
image sample of density
-depth value
depth of the image
image sample of depth
-despeckle
reduce the speckles within an image
convert -contrast $pic1 contrast.jpg
image sample of despeckle
-display server
obtain image or font from this X server
-dispose method
GIF disposal method
image sample of dispose
-dither
apply Floyd/Steinberg error diffusion to image
convert -dither -colors '0/0/50' $pic1 dither.jpg
image sample of dither
-draw string
annotate the image with a graphic primitive
convert -linewidth 2 -pen 'rgb:00/00/ff' -draw 'circle 100,100 150,150' $pic3 draw.jpg
image sample of draw
-edge factor
apply a filter to detect edges in the image
convert -edge 50.0 $pic1 edge.jpg
image sample of edge
-emboss
emboss an image
convert -emboss tmp3.jpg emboss.jpg
image sample of emboss
-enhance
apply a digital filter to enhance a noisy image
convert -enhance $pic1 enhance.jpg
image sample of enhance
-equalize
perform histogram equalization to an image
image sample of equalize
-filter type
use this filter when resizing an image
image sample of filter
-flip
flip image in the vertical direction
image sample of flip
-flop
flop image in the horizontal direction
image sample of flop
-font name
X11 font for displaying text
image sample of font
-frame geometry
surround image with an ornamental border
image sample of frame
-fuzz distance
colors within this distance are considered equal
image sample of fuzz
-gamma value
level of gamma correction
image sample of gamma
-geometry geometry
perferred size or location of the image
image sample of geometry
-gravity type
vertical and horizontal text placement
image sample of gravity
-implode amount
implode image pixels about the center
image sample of implode
-interlace type
None, Line, Plane, or Partition
image sample of interlace
-label name
assign a label to an image
image sample of label
-layer type
Red, Green, Blue, Matte
image sample of layer
-linewidth value
width of line in pixels
image sample of linewidth
-label name
assign a label to an image
image sample of label
-loop iterations
add Netscape loop extension to your GIF animation
image sample of loop
-map filename
transform image colors to match this set of colors
image sample of map
-matte
store matte channel if the image has one
image sample of matte
-median radius
apply a median filter to the image
image sample of median
-modulate value
vary the brightness, saturation, and hue
image sample of modulate
-monochrome
transform image to black and white
image sample of monochrome
-morph value
morph an image sequence
image sample of morph
-mosaic
create an mosaic from an image sequence
image sample of mosaic
-negate
replace every pixel with its complementary color
image sample of negate
-noise
add or reduce noise in an image
image sample of noise
-normalize
transform image to span the full range of colors
image sample of normalize
-opaque color
change this color to the pen color
image sample of opaque
-page geometry
size and location of an image canvas
image sample of page
-paint radius
simulate an oil painting
image sample of paint
-pen color
color for annotating or changing opaque color
image sample of pen
-ping
efficiently determine image characteristics
image sample of ping
-pointsize value
pointsize of Postscript font
image sample of pointsize
-preview type
image preview type
image sample of preview
-profile filename
add ICC or IPTC information profile to image
image sample of profile
-quality value
JPEG/MIFF/PNG compression level
image sample of quality
-raise value
lighten/darken image edges to create a 3-D effect
image sample of raise
-region geometry
apply options to a portion of the image
image sample of region
-roll geometry
roll an image vertically or horizontally
image sample of roll
-rotate degrees
apply Paeth rotation to the image
image sample of rotate
-sample geometry
scale image with pixel sampling
image sample of sample
-scale geometry
resize image
image sample of scale
-scene value
image scene number
image sample of scene
-segment values
segment an image
image sample of segment
-seed value
pseudo-random number generator seed value
image sample of seed
-shade degrees
shade the image using a distant light source
image sample of shade
-sharpen factor
apply a filter to sharpen the image
image sample of sharpen
-shear geometry
slide one edge of the image along the X or Y axis
image sample of shear
-size geometry
width and height of image
image sample of size
-solarize threshold
negate all pixels above the threshold level
image sample of solarize
-spread amount
displace image pixels by a random amount
image sample of spread
-swirl degrees
swirl image pixels about the center
image sample of swirl
-texture filename
name of texture to tile onto the image background
image sample of texture
-threshold value
threshold the image
image sample of threshold
-transparent color
make this color transparent within the image
image sample of transparent
-treedepth value
depth of the color classification tree
image sample of treedepth
-units type
Inch, Centimeter, or Undefined
image sample of units
-verbose
print detailed information about the image
image sample of verbose
-view
FlashPix viewing transforms
image sample of view
-wave geometry
alter an image along a sine wave
image sample of wave

バージョン

Version: @(#)ImageMagick 5.1.1 00/02/01 Q:8 cristy@mystic.es.dupont.com

Home | Contents
Mail