mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
svg -> png script
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user