This is a bash script to create a thumbnail of a photograph that looks like a Polaroid photo with the caption written underneath. The thumbnail is randomly rotated slightly and has a drop shadow, e.g.
The script requires the ImageMagick suite to be installed. You use the script by supplying three arguments:
- The input file name
- The output file name
- The caption (enclosed in quotes)
e.g. thumbnail.sh photo.jpg photo_thumb.png "This is the caption"
The input and output file types can be any format, but I recommend using PNG as the output format, because the drop shadow is actually alpha-blended to work with any background and PNG preserves the alpha channel.