Added watermark function

This commit is contained in:
Jonas Forsberg 2020-10-08 07:05:55 +02:00
parent f0d0a3c11d
commit 7f348b0268
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -1,5 +1,13 @@
#!/bin/bash #!/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() { function reset_evolution() {
# Reset evolution calendar factory # Reset evolution calendar factory
# When it hangs connecting to EWS calendar outlooko365 # When it hangs connecting to EWS calendar outlooko365