ImageMagick 圖像操作

2020-08-28 16:57 更新

圖像操作項(xiàng)與圖像設(shè)置項(xiàng)不同,它只作用于緊接著存在的一個(gè)圖像,僅僅是這一個(gè)圖像,之后,圖像操作項(xiàng)就會(huì)失效。在這里, 我們說明一下。命令行參數(shù)有三種,前面講過的圖像設(shè)置項(xiàng),這里的圖像操作項(xiàng),以及后面會(huì)講到的序列操作項(xiàng)。圖像操作項(xiàng)包括下面這些。

-annotate -black -threshold -blur -border -charcoal
-chop -clip -clip-path -clip -mask -colors -colorize
-colorspace -compose -contrast -convolve -crop -cycle
-despeckle -draw -edge -emboss -enhance -equalize
-evaluate -extent -flip -flop -floodfill -frame
-gamma -gaussian -blur -implode -lat -level -map -mask
-median -modulate -monochrome -negate -noise -normalize
-opaque -ordered-dither -paint -posterize -raise
-profile -radial -blur -raise -random-threshold
-resample -resize -roll -rotate -sample -scale
-sepia -tone -segment -shade -shadow -sharpen -shave
-shear -sigmoidal -contrast -solarize -splice -spread
-strip -swirl -threshold -transparent -thumbnail -tint
-transform -trim -unsharp -version -wave -white-point
-white -threshold

下面例子,?negate 這項(xiàng)只對 wand 有效,對 wizard 是無效的(但是,如果把它放在 wizard后的話,則會(huì)作用于這兩張圖)。

$ convert wand.png -negate wizard.png images.png


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號