dongwen2896 2015-10-23 14:45
浏览 266

使用Image Magick获取图像形状边缘

I am new to ImageMagick and Imagick library in php, and I want to know how can I make everything transparent but leave only the edges of the shape in a png image.

For example I have this picture: enter image description here

And I want to keep only a thin line formed by the edges of the eagle, and fill the inside of the eagle with transparent color.

Or as an alternative how can I change the black eagle color into a brown rgba color with opacity 0.4 using Image Magick library with php and GD library?

  • 写回答

3条回答 默认 最新

  • doutu6658 2015-10-23 14:54
    关注

    Something like this to detect edges:

    convert eagle.png --edge 3 eagle-edges.png
    

    Within PHP you can use bool Imagick::edgeImage(float $radius).

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度