metalx1000

Yearbook photo labeler with Imagemagick

Sep 8th, 2019
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #use imagemagick to put the name of each photo at the bottom of the image
  4.  
  5. for i in *.jpg;
  6. do echo "$i";convert "$i" -auto-orient -gravity south \
  7.   -stroke '#000C' -strokewidth 20 -pointsize 250 -annotate 0 "${i%%.jpg}" \
  8.   -stroke  none   -fill white    -pointsize 250 -annotate 0 "${i%%.jpg}" \
  9.   "${i%%.jpg}.png"
  10. done
Add Comment
Please, Sign In to add comment