summaryrefslogtreecommitdiff
path: root/bits24-certs.sh
blob: 118c4223ebbd22ff3408e75ee16c46339c616097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

[ -f certificate.jpg ] || exit

for file in *Participants.csv; do
	event="${file%Participants.csv}"
	mkdir -pv "$event"

	while IFS=\| read -r email name; do echo
		# [ -f "$event/$email" ] && continue
		convert -verbose certificate.jpg \
			-pointsize 200 -fill white -font MesloLGL-Nerd-Font-Bold \
			-annotate +3700+2550 "$name" -annotate +3700+3100 "$event" \
			"$event/$email.jpg"
	done < "$file"
done