#!/bin/sh

# raberu la 27.3.2010 21.36.24 +0200
#
# la la 27.3.2010 21.36.24 +0200: First release



test $# -gt 1  || exit 1
test -r "${1}" || exit 1

FONT="Helvetica -pointsize 10"

convert "${1}" -region 320x10+0+0 -black-threshold 1000% -region 320x10+0+230 -black-threshold 1000% - \
| convert - -gravity north -stroke '#000C' -strokewidth -2 -font $FONT -annotate 0 "${2}" -stroke none -font $FONT -fill white -annotate 0 "${2}" - \
| convert - -gravity south -stroke '#000C' -strokewidth -2 -font $FONT -annotate 0 "${3}" -stroke none -font $FONT -fill white -annotate 0 "${3}" "${1}"