Skip to content

Instantly share code, notes, and snippets.

@s-steephan
Last active September 6, 2018 06:36
Show Gist options
  • Save s-steephan/b0132cb26e1ad1200d59ddbb757ac233 to your computer and use it in GitHub Desktop.
Save s-steephan/b0132cb26e1ad1200d59ddbb757ac233 to your computer and use it in GitHub Desktop.

To apply mask to all images

# replace mask.png with your mask file name.

for i in *.png; do convert $i  mask.png -gravity center -composite $i; done 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment