Update bin/build-favicons

This commit is contained in:
0x1eef 2024-02-26 17:19:27 -03:00
parent fb9c7da188
commit 05f310c670
7 changed files with 12 additions and 8 deletions

View file

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 B

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB