-
-
Save igor-kamil/b42d6d8dd9fe13dc87f2d3f93c374da3 to your computer and use it in GitHub Desktop.
add watermark to all jpg images with imagemagick (command line)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a watermark image (watermark.png) and place in folder | |
# Run this script on command line. It generates an image-wm.jpg for each image.jpg | |
for x in *.jpg; do convert $x watermark.png -gravity southeast -geometry +30+30 -composite ${x//.png}-wm.png; done | |
# Use variant below to overwrite original file | |
# for x in *.jpg; do convert $x watermark.png -gravity southeast -geometry +30+30 -composite $x; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment