msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

02 Feb 2007 Improved watermark script with imagemagick

Posted by

#!/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

Tags: , , , ,

Comments are closed.