svg -> png script

pull/35238/head
Adeeb Shihadeh 3 months ago
parent 6c03e9472d
commit 735c227f3c
  1. 4
      selfdrive/assets/prep-svg.sh

@ -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
Loading…
Cancel
Save