Created
September 8, 2016 04:24
-
-
Save accidentalrebel/c9f211b951fa960178ab81bb99f6ff24 to your computer and use it in GitHub Desktop.
Adds a watermark to a group of images in a folder using ImageMagick's Composite Command
This file contains hidden or 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
@echo off | |
for %%i in (to_convert/*.jpg) do ( magick convert to_convert/%%i -auto-orient to_convert/%%i && magick composite -watermark 10 -gravity center watermark-white.png to_convert/%%i watermarked/%%i && echo "composite of %%i successful" && del "%cd%\to_convert\%%i" && echo "Successfully deleted %cd%\to_convert\%%i" ) | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment