diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-05-26 01:52:31 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-05-26 01:52:31 +0200 |
| commit | 6a8406c5b17cf9bc170b309dc8e58cffa244307e (patch) | |
| tree | 6e6bad16f593c86bd95d2868a50e1325d0da4d9e /head.sh | |
| download | drasl-heads-6a8406c5b17cf9bc170b309dc8e58cffa244307e.tar.xz | |
Diffstat (limited to 'head.sh')
| -rwxr-xr-x | head.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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" - |
