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
Use convert with -threshold option?
convert
EDIT: oops... from PHP? Imagick::thresholdImage?
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.
Try the edge detection chapter in the ImageMagick examples.