wimi/bin/mkicons

23 lines
387 B
Text
Raw Normal View History

2024-09-01 22:14:01 +02:00
#!/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