Skip to content

Commit

Permalink
Adding export.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Jan 20, 2024
1 parent 96a8ffb commit aebf125
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*.svg

*-orig.svg
*.export.png
*.png
*.jpg
*.txt
14 changes: 14 additions & 0 deletions export.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

SRC=$(realpath $(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd))

for f in $(find $SRC/testdata -type f -iname \*.svg|sort -h); do
echo "EXPORTING ${f#$SRC/} -> ${f#$SRC/}.export.png"
inkscape \
--export-area-page \
--export-background='#ffffff' \
--export-type=png \
-o "${f}.export.png" \
"$f"
done

0 comments on commit aebf125

Please sign in to comment.