Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dingyi/svgo

 
 

Repository files navigation

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.

Usage with svgo-gui

  1. Download svgo-gui
  2. Open a Terminal at svgo-gui.app/Content/Resources/app.nw/
  3. npm install https://github.com/infinise/svgo/archive/master.tar.gz --save

About

Nodejs-based tool for optimizing SVG vector graphics files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Makefile 0.2%