Skip to content

Instantly share code, notes, and snippets.

@nanusdad
Last active November 4, 2016 15:17
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 nanusdad/67a94d888e96ed37de4893d47748cfe0 to your computer and use it in GitHub Desktop.
Save nanusdad/67a94d888e96ed37de4893d47748cfe0 to your computer and use it in GitHub Desktop.
Watermarking with ImageMagick

From StackOverflow

Watermarking with an image is as simple as

composite -dissolve 30% -gravity south watermark.jpg input-file.jpg output-file.jpg

Using the above command as an example, a Bash command for doing this to all files in folder would be:

for pic in *.jpg; do
    composite -dissolve 30% -gravity south watermark.jpg $pic ${pic//.jpg}-marked.jpg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment