首頁文件分類網站建置CentOS使用 ImageMagick Montage 剪輯功能
使用 ImageMagick Montage 剪輯功能

使用剪輯程序通過組合多個單獨的圖像來創建合成圖像。

圖像在合成圖像上平鋪,可選地裝飾有邊框,框架,圖像名稱等。

有關如何構建剪輯命令的建議,請參閱命令行處理,或參見下列的命令範例用法。

/usr/local/ImageMagick/bin/magick montage -help

範例用法

在此列出一些剪輯命令的範例,以說明其有用性和易用性。


首先,讓我們將兩個圖像剪輯成一個複合圖像:

/usr/local/ImageMagick/bin/magick montage -background '#336699' -geometry +4+4 -font STIX-Bold rose.jpg red-ball.png montage.jpg

好吧,讓我們添加一些裝飾:

/usr/local/ImageMagick/bin/magick montage -label %f -frame 5 -background '#336699' -geometry +4+4 -font STIX-Bold rose.jpg red-ball.png frame.jpg

可以在命令行的 Examples of ImageMagick Usage 和 Graphics from the Command Line 中找到使用剪輯功能的其他範例。

可以從命令行的 More Graphics from the Command Line 和 Examples of ImageMagick Usage 中進一步討論。


選項摘要

-adaptive-sharpen geometryadaptively sharpen pixels; increase effect near edges
-adjoinjoin images into a single multi-image file
-affine matrixaffine transform matrix
-alphaon, activate, off, deactivate, set, opaque, copy, transparent, extract, background, or shape the alpha channel
-annotate geometry textannotate the image with text
-authenticate valuedecrypt image with this password
-auto-orientautomagically orient image
-background colorbackground color
-blue-primary pointchromaticity blue primary point
-blur geometryreduce image noise and reduce detail levels
-border geometrysurround image with a border of color
-bordercolor colorborder color
-caption stringassign a caption to an image
-channel typeapply option to select image channels
-clone indexclone an image
-coalescemerge a sequence of images
-colors valuepreferred number of colors in the image
-colorspace typeset image colorspace
-comment stringannotate image with comment
-compose operatorset image composite operator
-compositecomposite image
-compress typeimage compression type
-crop geometrypreferred size and location of the cropped image
-debug eventsdisplay copious debugging information
-define format:optiondefine one or more image format options
-density geometryhorizontal and vertical density of the image
-depth valueimage depth
-display serverget image or font from this X server
-dispose methodlayer disposal method
-dither methodapply error diffusion to image
-draw stringannotate the image with a graphic primitive
-duplicate count,indexesduplicate an image one or more times
-endian typeendianness (MSB or LSB) of the image
-extent geometryset the image size
-extract geometryextract area from image
-fill colorcolor to use when filling a graphic primitive
-filter typeuse this filter when resizing an image
-flattenflatten a sequence of images
-flipflip image in the vertical direction
-flopflop image in the horizontal direction
-font namerender text with this font
-frame geometrysurround image with an ornamental border
-gamma valuelevel of gamma correction
-geometry geometrypreferred size or location of the image
-gravity typehorizontal and vertical text placement
-green-primary pointchromaticity green primary point
-helpprint program options
-identifyidentify the format and characteristics of the image
-interlace typetype of image interlacing scheme
-interpolate methodpixel color interpolation method
-kerning valuethe space between two characters
-label stringassign a label to an image
-limit type valuepixel cache resource limit
-log formatformat of debugging information
-mattecolor colorframe color
-mode typeframing style
-monitormonitor progress
-monochrometransform image to black and white
-origin geometryimage origin
-page geometrysize and location of an image canvas (setting)
-pointsize valuefont point size
-polaroid anglesimulate a Polaroid picture
-profile filenameadd, delete, or apply an image profile
-quality valueJPEG/MIFF/PNG compression level
-quantize colorspacereduce image colors in this colorspace
-quietsuppress all warning messages
-red-primary pointchromaticity red primary point
-regard-warningspay attention to warning messages.
-repage geometrysize and location of an image canvas
-resize geometryresize the image
-respect-parenthesessettings remain in effect until parenthesis boundary.
-rotate degreesapply Paeth rotation to the image
-sampling-factor geometryhorizontal and vertical sampling factor
-scale geometryscale the image
-scenesrangeimage scene range
-seed valueseed a new sequence of pseudo-random numbers
-shadow geometrysimulate an image shadow
-size geometrywidth and height of image
-stripstrip image of all profiles and comments
-stroke colorgraphic primitive stroke color
-synchronizesynchronize image to storage device
-taintmark the image as modified
-texture filenamename of texture to tile onto the image background
-tile filenametile image when filling a graphic primitive
-tile-offset geometryset the image tile offset
-titledecorate the montage image with a title
-transformaffine transform image
-transparent colormake this color transparent within the image
-transposeflip image in the vertical direction and rotate 90 degrees
-transparent-color colortransparent color
-treedepth valuecolor tree depth
-trimtrim image edges
-type typeimage type
-units typethe units of image resolution
-unsharp geometrysharpen the image
-verboseprint detailed information about the image
-versionprint version information
-viewFlashPix viewing transforms
-virtual-pixel methodaccess method for pixels outside the boundaries of the image
-white-point pointchromaticity white point

參考資料:

Command-line Tools: Montage @ ImageMagick

http://www.imagemagick.org/script/montage.php

首頁文件分類網站建置CentOS使用 ImageMagick Montage 剪輯功能