From fe4da131de10a4318ab415d6540f9e939a5b17f2 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Thu, 21 Nov 2024 14:37:35 +0530 Subject: Initial commit --- bits24-certs.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bits24-certs.sh (limited to 'bits24-certs.sh') diff --git a/bits24-certs.sh b/bits24-certs.sh new file mode 100755 index 0000000..118c422 --- /dev/null +++ b/bits24-certs.sh @@ -0,0 +1,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 -- cgit v1.2.3