Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pass a glob into this function to quickly add a basic watermark of the filename
function watermark
for file in $argv
convert $file -font Arial -pointsize 20 -draw "gravity south fill black text 0,12 '$file' fill white text 1,11 '$file' " converted-$file
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment