al-quran.reflectslight.io/bin/build-favicons
2024-02-26 17:19:27 -03:00

16 lines
402 B
Bash
Executable file

#!/bin/sh
sizes="16x16 32x32 48x48 64x64 128x128 256x256"
for size in ${sizes}; do
convert src/favicon.svg \
-resize ${size} \
-background none \
-fuzz 8% \
-mattecolor "#FFFFFF" \
-alpha set \
-channel RGBA \
-fill none \
-opaque white \
-gravity center \
-extent ${size} \
png32:src/favicon-${size}.png
done