furnace/res/make-icon.sh
2021-12-29 17:50:10 -05:00

13 lines
362 B
Bash
Executable file

#!/bin/bash
sizes=(16 32 64 128 256 512)
if [ ! -e icon ]; then
mkdir icon
fi
for i in "${sizes[@]}"; do
echo "making $i..."
convert logo.png -filter Mitchell -scale "$i"x"$i" icon/icon_"$i"x"$i".png
done
for i in "${sizes[@]}"; do
echo "making $i@2x..."
convert logo.png -filter Mitchell -scale "$((i*2))"x"$((i*2))" icon/icon_"$i"x"$i""@2x.png"
done