我该使用哪个转换命令来模糊图像的部分。目前我正在使用
convert source.jpg -fill white -draw "polyline 671,395 665,356 812,331 818,370" result.jpg
它在图像上创建了四个白色的点形状,但我需要模糊图像中所有这部分的内容。
谢谢!
我该使用哪个转换命令来模糊图像的部分。目前我正在使用
convert source.jpg -fill white -draw "polyline 671,395 665,356 812,331 818,370" result.jpg
convert \
logo.jpg \
\( -clone 0 -fill white -colorize 100 -fill black \
-draw "polygon 332,180 427,105 481,238 399,279" \
-alpha off -write mpr:mask +delete \) \
-mask mpr:mask -blur 0x5 +mask logo_blur.jpg
模糊的结果
使用 -region http://www.imagemagick.org/Usage/masking/#region_warping 命令。
convert a.png -region 150x150+599+261 -implode 1.5 +region b.png
convert a.png -region 150x150+599+261 -blur 0x100 +region b.png
会。 - yofee
convert source.jpg -region WxH+X+Y -blur 0x3 result.jpg
,其中W是宽度,H是高度,X是距左上角的x偏移量,Y是距左上角的y偏移量。 - Mark Setchell