]> git.plutz.net Git - confetti/blobdiff - pages/therapy.sh
drawable overlays
[confetti] / pages / therapy.sh
index 6127b4dfd5979011f2b94aeb6a9484999185afe2..ee9804b2f6b139227515e5bd234d08107a77e516 100755 (executable)
@@ -29,6 +29,10 @@ tpyfile="$_DATA/therapies/$id"
 mpxfile="$_DATA/prescriptions/${id%.tpy}.mpx"
 client="$_DATA/vcard/${id%%.*}.vcf"
 
+identify "$_EXEC/templates/therapy_background.png" \
+| sed -r 's;^.* ([0-9]+x[0-9]+) .*$;\1;' \
+| read bg_dim
+
 card_N="$(sed -nr 's:^(N)(;[^"\:]+|;"[^"]+")*\:(.*)$:\3:gp' "$client")"
 card_FN="$(sed -nr 's:^(FN)(;[^"\:]+|;"[^"]+")*\:(.*)$:\3:gp' "$client")"
 card_NICK="$(sed -nr 's:^(NICKNAME)(;[^"\:]+|;"[^"]+")*\:(.*)$:\3:gp' "$client")"