wimi/bin/mkicons
0x1eef 1028613cad
Some checks failed
myip.wtf / build (push) Has been cancelled
myip.wtf / tests (push) Has been cancelled
import via preact/hooks
2024-09-12 19:47:50 -03:00

22 lines
387 B
Bash

#!/bin/sh
set -e
##
# variables
sizes="16x16 48x48 64x64 128x128 256x256"
dir="src/images/"
##
# main
for size in ${sizes}; do
gm convert \
"${dir}"/icon.svg \
-resize "${size}" \
-background none \
-trim +repage \
-fuzz 5% \
-transparent white \
-gravity center \
-extent "${size}" \
"${dir}"/icon"${size}".png
done