Imagemagick Shadow
A quick tutorial on using Imagemagick to add a background shadow to images. For the best result, ensure the original image has a transparent background. It is also useful to observe consistent sizes for the images.
Add a shadow
- Set the name of the input image - for example
1input="old.png"
- Set the name of the output image - for example
1output="new.png"
- Use the input image and create the output image with a shadow
1convert -page +4+4 $input -alpha set \( +clone -background navy -shadow 60x8+8+8 \) +swap -background none -mosaic $output