PHP/ImageMagic Get the “shadow” of an image

后端 未结 2 893
盖世英雄少女心
盖世英雄少女心 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.

提交回复
热议问题