We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bc4369 commit 0458223Copy full SHA for 0458223
2 files changed
svg2pdf.sh
@@ -0,0 +1,9 @@
1
+#!/bin/bash
2
+# For MAC OSX ONLY, where the CLI inkscape cannot find files with relative path
3
+
4
+for file in `find img -type f -name *.svg`
5
+do
6
+ base=$(basename $file .svg);
7
+ echo "Converting: $base.svg -> $base.pdf";
8
+ /Applications/Inkscape.app/Contents/Resources/bin/inkscape --export-pdf="$PWD/img/generated/$base.pdf" "$PWD/img/$base.svg"
9
+done
svg2png.sh
+ echo "Converting: $base.svg -> $base.png";
+ /Applications/Inkscape.app/Contents/Resources/bin/inkscape --export-png="$PWD/img/generated/$base.png" "$PWD/img/$base.svg"
0 commit comments