Files
ormakers-tronbyt/scripts/fetch_icons.sh
T

18 lines
467 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/../images"
declare -A ICONS=(
[hand-saw]="delapouite"
[sewing-needle]="lorc"
[soldering-iron]="caro-asercion"
)
for name in "${!ICONS[@]}"; do
artist="${ICONS[$name]}"
svg="$name.svg"
curl -sL -o "$svg" "https://game-icons.net/icons/ffffff/transparent/1x1/${artist}/${name}.svg"
convert -background none -density 300 "$svg" -resize 32x32 -brightness-contrast 0x35 "$name.png"
rm "$svg"
done