From b25087e96e6d3b2b244c2280ba1384faacd20603 Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Tue, 20 Dec 2011 12:21:59 +0100 Subject: [PATCH] Checks for imagemagick presence before running the script. TODO Create config file to change lots of configurations (watermark position, no resizing, ....) Add automatic contrast calculation and watermark modification if needed --- waterMark | 3 +++ 1 file changed, 3 insertions(+) diff --git a/waterMark b/waterMark index 71264c3..ce2a80d 100755 --- a/waterMark +++ b/waterMark @@ -16,6 +16,9 @@ #composite -gravity SouthWest -geometry +5+5 -size 2000x2000 site.png foto_new.jpg test.jpg #convert -resize 1024 foto.jpg foto_new.jpg +# Check whether imagemagick is installed +hash identify 2>&- || { echo >&2 "imagemagick is required to use this script! Aborting."; exit 1; } + IN_REPO=$1 OUT_REPO=$2 WATER=$3