Created
March 25, 2018 20:55
-
-
Save germanfr/89a60d90995ca5f5c42f0faacea5c3c6 to your computer and use it in GitHub Desktop.
Simplify SVG with scour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# temp file for the output (can't output to self) | |
tmp_file=$(mktemp) | |
scour -i "$1" -o $tmp_file \ | |
--remove-metadata \ | |
--enable-id-stripping \ | |
--protect-ids-noninkscape \ | |
--disable-simplify-colors | |
mv -f $tmp_file "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment