metamorpov/icons/svg-to-png.sh

13 lines
359 B
Bash
Executable File

#!/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