Skip to content

Instantly share code, notes, and snippets.

@germanfr
Created March 25, 2018 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save germanfr/89a60d90995ca5f5c42f0faacea5c3c6 to your computer and use it in GitHub Desktop.
Save germanfr/89a60d90995ca5f5c42f0faacea5c3c6 to your computer and use it in GitHub Desktop.
Simplify SVG with scour
#!/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