al-quran.reflectslight.io/bin/build-favicons

17 lines
402 B
Text
Raw Normal View History

2024-02-25 21:22:43 +01:00
#!/bin/sh
sizes="16x16 32x32 48x48 64x64 128x128 256x256"
for size in ${sizes}; do
2024-02-26 21:19:27 +01:00
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
2024-02-25 21:22:43 +01:00
done