metamorpov/icons/svg-to-png.sh

13 lines
359 B
Bash
Raw Normal View History

2025-06-29 16:03:19 -04:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p inkscape
# Uses Inkscape to generate .png files from the provided input
name=$(basename $1 .svg)
inkscape -o $name-16x.png -w 16 $1
inkscape -o $name-32x.png -w 32 $1
inkscape -o $name-48x.png -w 48 $1
inkscape -o $name-64x.png -w 64 $1
inkscape -o $name-96x.png -w 96 $1
inkscape -o $name-128x.png -w 128 $1