svg -> png script

This commit is contained in:
Adeeb Shihadeh
2025-05-15 09:53:20 -07:00
parent 6c03e9472d
commit 735c227f3c
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
# sudo apt install scour
@@ -6,4 +7,7 @@ for svg in $(find icons/ -type f | grep svg$); do
# scour doesn't support overwriting input file
scour $svg --remove-metadata $svg.tmp
mv $svg.tmp $svg
# convert to PNG
convert -background none -resize 400% -density 384 $svg "${svg%.svg}.png"
done