curl -o doge.jpg http://i0.kym-cdn.com/photos/images/newsfeed/000/581/296/c09.jpg下一步,模糊边缘.convert doge.jpg -alpha set -virtual-pixel transparent -channel A -morphology Distance Euclidean:1,20\! +channel doge.png您将需要将其输出为.pngYou will need to output it as a .png Imagemagick文档 编辑:以上示例适用于ImageMagick v6.Edit: The above example is for ImageMagick v6.对于IMv7,请尝试:For IMv7 try:convert doge.jpg \( +clone -alpha extract -virtual-pixel black -gamma 2 +level 0,100 -white-threshold 99 -morphology Distance Euclidean:1,200! -sigmoidal-contrast 3,0% \) -compose CopyOpacity -composite doge_im7.png 这篇关于如何使图像魔术中的淡入淡出边缘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-23 08:32