summaryrefslogtreecommitdiff
path: root/head.sh
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2026-05-26 01:52:31 +0200
committerLizzy Fleckenstein <lizzy@vlhl.dev>2026-05-26 01:52:31 +0200
commit6a8406c5b17cf9bc170b309dc8e58cffa244307e (patch)
tree6e6bad16f593c86bd95d2868a50e1325d0da4d9e /head.sh
downloaddrasl-heads-main.tar.xz
Diffstat (limited to 'head.sh')
-rwxr-xr-xhead.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/head.sh b/head.sh
new file mode 100755
index 0000000..ccccb85
--- /dev/null
+++ b/head.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -o pipefail
+curl "$DRASL_BACKEND/session/minecraft/profile/$1" \
+ | jq -r '.properties[] | select(.name == "textures") | .value' \
+ | base64 -d \
+ | jq -r '.textures.SKIN.url' \
+ | xargs -n1 curl \
+ | magick - -scale $(($2 * 8)) -crop "$2"x"$2"+"$2"+"$2" -