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
Try the edge detection chapter in the ImageMagick examples.