Skip to content

Instantly share code, notes, and snippets.

@Xananax
Created February 26, 2018 22:45
Show Gist options
  • Save Xananax/926c6a0161029a7905b74236adb26238 to your computer and use it in GitHub Desktop.
Save Xananax/926c6a0161029a7905b74236adb26238 to your computer and use it in GitHub Desktop.
batch add filename to images
# 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