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
- -append
- append an image sequence
convert -append $pic1 $pic2 $pic3 append.jpg
- -average
- average an image sequence
convert -average $pic1 $pic2 average.jpg
- -blur factor
- apply a filter to blur the image
convert -blur 80 $pic1 blur.jpg
- -border geometry
- surround image with a border of color
convert -border 10x5 $pic1 border.jpg
- -bordercolor color
- border color
convert -bordercolor '#ff0000' -border 10x5 $pic1 bordercolor.jpg
- -box color
- color for annotation bounding box
- -cache threshold
- megabytes of memory available to the pixel cache
- -charcoal factor
- simulate a charcoal drawing
- -coalesce
- merge a sequence of images
- -colorize value
- colorize the image with the pen color
- -colors value
- preferred number of colors in the image
convert -colors 4 $pic1 colors.jpg
- -colorspace type
- alternate image colorspace
convert -colorspace YUV -colors 4 $pic1 colorspace.jpg
- -comment string
- annotate image with comment
convert -comment "%f %wx%h %bkbytes" $pic1 comment.jpg
- -compress type
- type of image compression
- -contrast
- enhance or reduce the image contrast
convert -contrast $pic1 contrast.jpg
- -crop geometry
- preferred size and location of the cropped image
convert -crop 100x100+50+50 $pic1 crop.jpg
- -cycle amount
- cycle the image colormap
convert -cycle 2 $pic1 cycle.jpg
- -delay value
- display the next image after pausing
- -deconstruct
- break down an image sequence into constituent parts
- -density geometry
- vertical and horizontal density of the image
- -depth value
- depth of the image
- -despeckle
- reduce the speckles within an image
convert -contrast $pic1 contrast.jpg
- -display server
- obtain image or font from this X server
- -dispose method
- GIF disposal method
- -dither
- apply Floyd/Steinberg error diffusion to image
convert -dither -colors '0/0/50' $pic1 dither.jpg
- -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
- -edge factor
- apply a filter to detect edges in the image
convert -edge 50.0 $pic1 edge.jpg
- -emboss
- emboss an image
convert -emboss tmp3.jpg emboss.jpg
- -enhance
- apply a digital filter to enhance a noisy image
convert -enhance $pic1 enhance.jpg
- -equalize
- perform histogram equalization to an image
- -filter type
- use this filter when resizing an image
- -flip
- flip image in the vertical direction
- -flop
- flop image in the horizontal direction
- -font name
- X11 font for displaying text
- -frame geometry
- surround image with an ornamental border
- -fuzz distance
- colors within this distance are considered equal
- -gamma value
- level of gamma correction
- -geometry geometry
- perferred size or location of the image
- -gravity type
- vertical and horizontal text placement
- -implode amount
- implode image pixels about the center
- -interlace type
- None, Line, Plane, or Partition
- -label name
- assign a label to an image
- -layer type
- Red, Green, Blue, Matte
- -linewidth value
- width of line in pixels
- -label name
- assign a label to an image
- -loop iterations
- add Netscape loop extension to your GIF animation
- -map filename
- transform image colors to match this set of colors
- -matte
- store matte channel if the image has one
- -median radius
- apply a median filter to the image
- -modulate value
- vary the brightness, saturation, and hue
- -monochrome
- transform image to black and white
- -morph value
- morph an image sequence
- -mosaic
- create an mosaic from an image sequence
- -negate
- replace every pixel with its complementary color
- -noise
- add or reduce noise in an image
- -normalize
- transform image to span the full range of colors
- -opaque color
- change this color to the pen color
- -page geometry
- size and location of an image canvas
- -paint radius
- simulate an oil painting
- -pen color
- color for annotating or changing opaque color
- -ping
- efficiently determine image characteristics
- -pointsize value
- pointsize of Postscript font
- -preview type
- image preview type
- -profile filename
- add ICC or IPTC information profile to image
- -quality value
- JPEG/MIFF/PNG compression level
- -raise value
- lighten/darken image edges to create a 3-D effect
- -region geometry
- apply options to a portion of the image
- -roll geometry
- roll an image vertically or horizontally
- -rotate degrees
- apply Paeth rotation to the image
- -sample geometry
- scale image with pixel sampling
- -scale geometry
- resize image
- -scene value
- image scene number
- -segment values
- segment an image
- -seed value
- pseudo-random number generator seed value
- -shade degrees
- shade the image using a distant light source
- -sharpen factor
- apply a filter to sharpen the image
- -shear geometry
- slide one edge of the image along the X or Y axis
- -size geometry
- width and height of image
- -solarize threshold
- negate all pixels above the threshold level
- -spread amount
- displace image pixels by a random amount
- -swirl degrees
- swirl image pixels about the center
- -texture filename
- name of texture to tile onto the image background
- -threshold value
- threshold the image
- -transparent color
- make this color transparent within the image
- -treedepth value
- depth of the color classification tree
- -units type
- Inch, Centimeter, or Undefined
- -verbose
- print detailed information about the image
- -view
- FlashPix viewing transforms
- -wave geometry
- alter an image along a sine wave
バージョン
Version: @(#)ImageMagick 5.1.1 00/02/01 Q:8 cristy@mystic.es.dupont.com
Home | Contents
Mail