convert -size 200x100 xc:none -fill black -draw "circle 80,50 130,50" black.png
convert -size 200x100 xc:none -fill orange -draw "circle 120,50 170,50" orange.png
那我猜你想要这个:convert orange.png black.png -compose overlay -composite result.png
或者您可能指的是 luminize
混合模式:
convert orange.png black.png -compose luminize -composite result.png
如果你想尝试其他混合模式,可以使用以下方法:
identify -list compose
获取它们的完整列表。
Atop
Blend
Blur
Bumpmap
ChangeMask
Clear
ColorBurn
ColorDodge
Colorize
CopyAlpha
CopyBlack
CopyBlue
CopyCyan
CopyGreen
Copy
CopyMagenta
CopyRed
CopyYellow
Darken
DarkenIntensity
DivideDst
DivideSrc
Dst
Difference
Displace
Dissolve
Distort
DstAtop
DstIn
DstOut
DstOver
Exclusion
HardLight
HardMix
Hue
In
Intensity
Lighten
LightenIntensity
LinearBurn
LinearDodge
LinearLight
Luminize
Mathematics
MinusDst
MinusSrc
Modulate
ModulusAdd
ModulusSubtract
Multiply
None
Out
Overlay
Over
PegtopLight
PinLight
Plus
Replace
Saturate
Screen
SoftLight
Src
SrcAtop
SrcIn
SrcOut
SrcOver
VividLight
Xor
如果您想检查它们全部:
for b in $(identify -list compose); do convert -gravity center -pointsize 72 -label "$b" orange.png black.png -compose $b -composite miff:- ; done | montage -geometry +0+0 miff: montage.png