X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=pages%2Ftherapy.sh;fp=pages%2Ftherapy.sh;h=ee9804b2f6b139227515e5bd234d08107a77e516;hp=6127b4dfd5979011f2b94aeb6a9484999185afe2;hb=a9d6bfdfa84de24b8800b6d34b24c28cbdb2feb4;hpb=32be1b8e73becaf528205136995261c3f03bae30 diff --git a/pages/therapy.sh b/pages/therapy.sh index 6127b4d..ee9804b 100755 --- a/pages/therapy.sh +++ b/pages/therapy.sh @@ -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")"