Skip to content

Instantly share code, notes, and snippets.

@Daij-Djan
Created September 28, 2020 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daij-Djan/4fe12bb714275dbfb1a3c9e595fbe36d to your computer and use it in GitHub Desktop.
Save Daij-Djan/4fe12bb714275dbfb1a3c9e595fbe36d to your computer and use it in GitHub Desktop.
#!/bin/bash
files=`find ~/Desktop/maria -name *_med*.jpeg -a -not -name maria*.jpeg`
text="© Maria Pich 2020"
for file in $files; do
echo "Add watermark to $file"
magick convert "$file" -font Helvetica -pointSize 15 -draw "gravity SouthEast fill grey text 50,30 '$text' fill white text 51,31 '$text'" "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment