dotfiles/dot_bin/executable_svg2png

10 lines
224 B
Bash

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