From 0e3dff83a05f7e477128baf40fb2cab42c3ebba3 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 20 Apr 2022 10:45:43 +0200 Subject: [PATCH] Default CARD images to 192x192 addresses https://github.com/owntracks/talk/issues/138 --- contrib/faces/image2card.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/faces/image2card.sh b/contrib/faces/image2card.sh index 0398e87..c1290b2 100755 --- a/contrib/faces/image2card.sh +++ b/contrib/faces/image2card.sh @@ -20,7 +20,7 @@ # Usage: image2card imagefile "full name" # # Requires `convert' from ImageMagick. -# Read image, convert to PNG, forcing a 40x40 size and encode +# Read image, convert to PNG, forcing a 192x192 size and encode # to BASE64. Create a JSON payload to be published to # owntracks/username/device/info # @@ -41,7 +41,7 @@ fullname="$2" base64switch="" base64check=$(echo "jj" | base64 -w 0 > /dev/null 2>&1) [ "$?" -eq "0" ] && base64switch="-w 0" -imgdata=$(convert "${imagefile}" -resize '40x40!' - | base64 $base64switch) +imgdata=$(convert "${imagefile}" -resize '192x192!' - | base64 $base64switch) cat <