From 7f348b02687715745cfdce697ce1c5d0c0dd74b8 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Thu, 8 Oct 2020 07:05:55 +0200 Subject: [PATCH] Added watermark function --- .functions.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.functions.sh b/.functions.sh index ebaf8db..2804283 100644 --- a/.functions.sh +++ b/.functions.sh @@ -1,5 +1,13 @@ #!/bin/bash +function watermark(){ + # Add watermark text to image (ImageMagick depentant) + # $1 = source file + # $2 = watermark text + # $3 = destination file + convert -density 150 -fill "rgba(255,0,0,0.25)" -gravity Center -pointsize 80 -draw "rotate -45 text 0,0 \"$2\"" "$1" "$3" +} + function reset_evolution() { # Reset evolution calendar factory # When it hangs connecting to EWS calendar outlooko365