Improved watermark script with imagemagick
#!/bin/bash
# Use a shell loop
#mkdir thumbnails
if [ ! -f *.JPG ] ; then
echo "Ingen filer tilgjengelig!"
else
for file in *.JPG
do
width=`identify -format %w ${file}`; \
convert -background '#0008' -fill white -gravity center -size ${width}x90 \
-font Sketchy -pointsize 50 \
caption:"Copyright © 2007 Pario.no" \
+size ${file} +swap -gravity north -composite thumbnails/${file};
# rm ${file}
done
fi