#!/bin/bash if [ $# != 1 ]; then echo "usage: $0 [input-image-file]" echo " uses imagemagick to create a thumbnail of the input-image-file" exit 1 fi convert -size 150x113 $1 -thumbnail 150x113 -unsharp 0x.5 temp-$1 convert temp-$1 -bordercolor snow -background black +polaroid thumb-$1.png if [ -f temp-$1 ]; then rm -f temp-$1 fi