How to make fade edges in image magic?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:54:56

问题


I want to create faded edges image effect using imagemagic commands. Please help me for a command to make effect as like http://postimg.org/image/h51e4twyp/


回答1:


Start with Doge

curl -o doge.jpg http://i0.kym-cdn.com/photos/images/newsfeed/000/581/296/c09.jpg

Next, blur the edges.

convert doge.jpg -alpha set -virtual-pixel transparent -channel A -morphology Distance Euclidean:1,20\! +channel doge.png

You will need to output it as a .png

Imagemagick documentation

Edit: The above example is for ImageMagick v6.

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


来源:https://stackoverflow.com/questions/20209631/how-to-make-fade-edges-in-image-magic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!