wimi/bin/iconify

16 lines
327 B
Text
Raw Normal View History

2024-04-01 17:34:00 +02:00
#!/bin/sh
set -e
sizes="16x16 48x48 64x64 128x128 256x256"
dir="src/images/icons"
for size in ${sizes}; do
convert ${dir}/icon.svg \
-resize ${size} \
-background none \
2024-04-01 18:14:31 +02:00
-trim +repage \
-fuzz 5% \
-transparent white \
2024-04-01 17:34:00 +02:00
-gravity center \
-extent $size \
${dir}/wtf${size}.png
done