Skip to main content

Scour SVG Optimizer

Project description

# Scour

Scour is a Python module that takes an input SVG and outputs a cleaner, more concise SVG file. The goal is that authors will use this script after editing the file in a GUI editor such as Inkscape or Adobe Illustrator.

Scour was started as a vehicle for me to learn Python. In addition, the goal is to reduce the amount of time I spend in cleaning up files I find on sites such as openclipart.org

Ideas are pulled from three places:

Regards,

Jeff Schiller, 2009-04-06

codedread@gmail.com

http://blog.codedread.com/

http://www.codedread.com/scour/

## Usage

Standard:

scour -i mysvg.svg -o mysvg_opt.svg

Better (this works in IE which needs Viewbox):

scour -i mysvg.svg -o mysvg_opt.svg –enable-viewboxing

Maximum:

scour -i mysvg.svg -o mysvg_opt.svg –enable-viewboxing –enable-id-stripping
–enable-comment-stripping –shorten-ids –indent=none

Maximum + Compress:

scour -i mysvg.svg -o mysvg_opt.svgz –enable-viewboxing –enable-id-stripping
–enable-comment-stripping –shorten-ids –indent=none

## Notes

Packaging from [sources](http://www.codedread.com/scour/) retrieved on 2013/20/22:

  • done by Tavendo GmbH, Tobias Oberstein
  • license same as upstream (Apache 2.0)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scour, version 0.26
Filename, size File type Python version Upload date Hashes
Filename, size scour-0.26-py2.7.egg (79.5 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size scour-0.26.win32.exe (276.3 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size scour-0.26.zip (43.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page