A Plugin that compresses SVG assets using SVGO, right when you export them. This Plugin requires Sketch 3.8.
JavaScript
Latest commit 21e11d6 Jun 27, 2016 @bomberstudios bomberstudios Fixes for #2
Permalink
Failed to load latest commit information.
SVGO Compressor.sketchplugin/Contents/Sketch Fixes for #2 Jun 27, 2016
.gitignore Added .gitignore May 30, 2016
LICENSE.md Update LICENSE.md May 30, 2016
README.md Update README.md May 31, 2016

README.md

SVGO Compressor

A Plugin that compresses SVG assets using SVGO, right when you export them. This Plugin requires Sketch 3.8.

Install

  • Download SVGO Compressor & unzip it.
  • Double click SVGO Compressor.sketchplugin to install the Plugin.

Usage

Selecting menu items or hitting keys is out of fashion, so SVGO Compressor will compress your SVG assets whenever you export them, without you having to do anything.

You’ll get a message on your document window showing some stats about the process to let you know the compression worked as expected.

If you want your SVG assets uncompressed, you can temporarily disable the Plugin by opening Sketch’s Preferences › Plugins and unchecking 'SVGO Compressor'. Alternatively, you can right-click any layer and select Copy SVG Code, and that will give you the original, uncompressed code.

Editing Settings

If for some reason you’re not happy with the default settings we’ve chosen, you can select Plugins › SVGO Compressor › About SVGO Compressor and then click the Edit SVGO Settings… button. You default editor will open the svgo.json file, where you’ll be able to tweak the settings.

For an explanation of what each SVGO Plugin does, please refer to the SVGO page on GitHub.

Acknowledgements

We would like to thank:

Support & feedback

We’ve done our best to make the Plugin useful & usable, but we know there’s always room for improvement. If you have any question or want to share your feedback, we’d love to hear it. Either file an issue, or get in touch with us at developers@sketchapp.com