dotfiles/dot_bin/executable_svg2png

10 lines
224 B
Plaintext
Raw Permalink Normal View History

2021-02-15 20:53:16 -05:00
#!/bin/sh
# Convert all arguments (assumed SVG) to a PNG
# Requires Inkscape
for i in $@; do
BN=$(basename $i .svg)
inkscape --export-area-drawing --export-type=png --export-filename="$BN.png" --export-dpi 300 $i
done