Scour

Cleaning SVG Files
Download

Scour Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • Jeff Schiller
  • Publisher web site:
  • http://www.codedread.com/

Scour Tags


Scour Description

Cleaning SVG Files Scour is a Python script that can be used to clean SVG files saved from Inkscape, Adobe Illustrator, etc. Scouring SVG files is useful to reduce file size and complexity (often speeding up rendering).The goal of scour is to provide an identically rendered image (i.e. a scoured document should have no discernable visible differences from the original file).Currently scour automatically performs the following operations on input SVG files:* Removes unused id attributes* Removes unreferenced elements in a * Removes all inkscape, sodipodi, adobe elements* Removes all inkscape, sodipodi, adobe attributes* Remove all unused namespace declarations on the document element* Removes any empty , , or elements* Style fix-ups:* Fixes any style properties like this: style="fill: url(#linearGradient1000) rgb(0, 0, 0);"* Removes any style property of: opacity: 1;* Removes any stroke properties when stroke: none;* Removes any stop-opacity: 1* Removes any fill-opacity: 1* Removes any stroke-opacity: 1 Requirements: · Python What's New in This Release: · Fix Bug 449803 by ensuring input and output filenames differ. · Fix Bug 453737 by updated Inkscape's scour extension with a UI · Fix whitespace collapsing on non-textual elements that had xml:space="preserve" · Fix Bug 479669 to handle empty < style > elements.


Scour Related Software