Created
February 26, 2018 22:45
-
-
Save Xananax/926c6a0161029a7905b74236adb26238 to your computer and use it in GitHub Desktop.
batch add filename to images
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
# Add a filename at the top of all jpegs in a given directory | |
# to write directly over the image, remove -splice 0x75 | |
# to include the extension, use "%[f]" instead of "%[t]" | |
mogrify -pointsize 54 -background black -splice 0x75 -strokewidth 4 -fill black -stroke black -gravity north -annotate +0+20 "%[t]" -fill white -stroke none -annotate +0+20 "%[t]" *.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment