Last active
September 20, 2016 10:06
-
-
Save jaksi/efab54f6ed6167b535453e0dd6ed047d to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
background_file='background.pdf' | |
name_list_file='names.txt' | |
font='Inconsolata' | |
font_size=36 | |
font_color='#ff00ff' | |
text_offset='+0+0' # offset from center | |
while read name; do | |
convert "${background_file}" -gravity Center -font "${font}" -pointsize ${font_size} -fill "${font_color}" -annotate "${text_offset}" "${name}" "${name}.pdf" | |
done < "${name_list_file}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment