From 26fda5e05a4485fa30f5a78a9235549f0510b38c Mon Sep 17 00:00:00 2001 From: mattmcw Date: Fri, 26 Mar 2021 20:17:48 -0400 Subject: [PATCH] Add a helper script for converting svg to png with inkscape --- svg2png.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 svg2png.sh diff --git a/svg2png.sh b/svg2png.sh new file mode 100644 index 0000000..991e216 --- /dev/null +++ b/svg2png.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +INPUT="${1}" +OUTPUT="${4}" +WIDTH=${2} +HEIGHT=${3} + +inkscape -z -w ${WIDTH} -h ${HEIGHT} "${INPUT}" -e "${OUTPUT}" \ No newline at end of file