]> git.armaanb.net Git - logo.git/blobdiff - svgconvert
Recreate logo as simple SVG and convert to bitmap
[logo.git] / svgconvert
diff --git a/svgconvert b/svgconvert
new file mode 100755 (executable)
index 0000000..f880170
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+mkdir -p png/1024 png/512 png/256 png/128
+
+for PHOTO in svg/*; do
+  BASE=$(basename $PHOTO | cut -d '.' -f 1)
+  inkscape -w 1024 -h 1024 "$PHOTO" --export-filename png/1024/${BASE}.png
+  inkscape -w 512 -h 512 "$PHOTO" --export-filename png/512/${BASE}.png
+  inkscape -w 256 -h 256 "$PHOTO" --export-filename png/256/${BASE}.png
+  inkscape -w 128 -h 128 "$PHOTO" --export-filename png/128/${BASE}.png
+done
+