PHP/ImageMagic Get the “shadow” of an image

后端 未结 2 870
盖世英雄少女心
盖世英雄少女心 2021-01-25 10:15

I would like to script PHP/ImageMagic in order to produce the \"shadow\" of a given image. Like in this example (done manually in GFXeditor) :

      original             


        
相关标签:
2条回答
  • 2021-01-25 11:00

    Use convert with -threshold option?

    EDIT: oops... from PHP? Imagick::thresholdImage?

    I wonder if it isn't more like a mask than a shadow? In the context of IM, shadow looks like a blurry copy of the image.

    0 讨论(0)
  • 2021-01-25 11:10

    Try the edge detection chapter in the ImageMagick examples.

    0 讨论(0)
提交回复
热议问题