Fork of SVGO that adds some new plugins specifically for working with SVGs exported by Photoshop and Illustrator. Note that this probably only works with fairly simple SVGs and might break some files.
New plugins:
- [ > ] Remove some attributes that generally aren't needed.
- [ > ] Limit
opacity
precision to 2 decimals. - [ > ] Convert Photoshop's
<style>
tag to attributes on individual elements. Makes them more compatible with Illustrator and the other SVG optimizing plugins. - [ > ] Remove 'bounds' elements (everything with the background color
#f0f
). I use this to force Photoshop Generator to export SVGs at a fixed size, by having a pink rectangle as a the document background, which then gets stripped out by this plugin.
For more usage and configuration information see the original SVGO page.
- Download svgo-gui
- Open a Terminal at
svgo-gui.app/Content/Resources/app.nw/
npm install https://github.com/infinise/svgo/archive/master.tar.gz --save