1. Shadows for an image (create a shadow using Imagick::shadowImage and overlay the original image on top)
2. Shadow for text
Note that the trick for multi-line text is to insert a new line character (\n) in your string. You can also use the rotation degree to control the layout, but make sure you use the correct size text canvas image because when you queryFontMetrics, it is based on the horizontal layout.
Somehow, I still don’t know how to adjust the line spacing between multi-lines. I also found that ImagickDraw::setFontWeight did not work for me. Anyone knows how to fix those two issues?
1. Mikko’s blog (the best place for ImageMagick samples, who can beat the IM developer himself)