【问题标题】:PHP/ImageMagic Get the "shadow" of an imagePHP/ImageMagick 获取图像的“阴影”
【发布时间】:2010-08-01 04:31:07
【问题描述】:

我想编写 PHP/ImageMagic 脚本以生成给定图像的“阴影”。就像在这个例子中一样(在 GFXeditor 中手动完成):

      original                shadow

alt text http://uppix.net/d/a/f/dc82fce795fc4af20170080b09c9a.png ==> alt text http://uppix.net/8/9/9/b1e9df4b2858c40081771961e028d.png

注意:所有原始图像都将像示例中一样位于白色背景上。

我查看了 ImageMagic 文档,但还没有发现任何有用的东西。有谁知道它是否可以在 PHP/ImageMagic 中完成?如果有怎么办?

【问题讨论】:

    标签: php imagemagick


    【解决方案1】:

    convert-threshold 选项一起使用?

    编辑:哎呀...来自 PHP? Imagick::thresholdImage?

    我想知道它是不是更像一个面具而不是一个影子? In the context of IM阴影看起来像是图像的模糊副本。

    【讨论】:

      【解决方案2】:

      试试 ImageMagick 示例中的 edge detection 章节。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-12-08
        • 2019-09-22
        • 2014-06-05
        • 2011-07-19
        • 1970-01-01
        • 1970-01-01
        • 2012-05-03
        • 1970-01-01
        相关资源
        最近更新 更多