Scour - An SVG Optimizer / Cleaner
Find a file
2011-02-10 19:48:53 -05:00
fulltests Move Tree_of_Life_SVG.svg (revision 188) from unittests to fulltests. Whoops! 2010-07-16 22:04:22 -04:00
logos Add logos and statistics spreadsheet 2010-04-25 21:58:03 -05:00
python-modules-pre24 Add Martin's patch for rewrite of command-line option parsing. Add CGI and mod_python versions of a web interface. 2009-05-22 09:04:40 -05:00
unittests Apply the patches submitted by Jan Thor in bug 714731. These patches remove attributes whose value equals its default value per the SVG specification, except if an element's parent node defines a non-default value explicitly, and add unit tests. 2011-02-10 19:48:53 -05:00
CONTRIBUTORS Fix Bug 604000: Correctly remove overflow attributes on marker, pattern, svg 2010-07-11 11:18:26 -07:00
crunch.sh Added --enable-viewboxing option and stop setting width/height to 100% by default 2009-12-31 13:59:54 -06:00
LICENSE Move to Apache License 2009-04-06 10:09:23 -05:00
NOTICE Add NOTICE file 2009-04-06 10:14:02 -05:00
package.sh Update push.sh with the new branch location for the trunk. Update package.sh, adding the newly-required file svg_transform.py. 2010-06-15 21:40:08 -04:00
push.sh Update push.sh with the new branch location for the trunk. Update package.sh, adding the newly-required file svg_transform.py. 2010-06-15 21:40:08 -04:00
README.txt Restore accidentally deleted README file 2009-04-25 02:39:14 -05:00
release-notes.html Add marker-start, marker-mid, marker-end to list of SVG properties that get converted to attributes 2010-07-11 22:48:40 -07:00
scour.inkscape.py Future-proof the Scour Inkscape plugin's method of acquiring the name of the file to optimise. Thanks to Bernd Feige for the patch. 2010-08-31 22:10:58 -04:00
scour.inx Add the option --no-renderer-workaround, which disables renderer workarounds. Made --renderer-workaround the default, to avoid duplicate bugs reported against Scour instead of librsvg. 2010-10-04 19:19:40 -04:00
scour.py Apply the patches submitted by Jan Thor in bug 714731. These patches remove attributes whose value equals its default value per the SVG specification, except if an element's parent node defines a non-default value explicitly, and add unit tests. 2011-02-10 19:48:53 -05:00
scra.py Final scour 0.18: more fixes to XML serialization (wellformedness), some unit tests, update to package script to use zip file and to package the inkscape extension 2009-08-09 22:25:20 -05:00
statistics.html Final Scour 0.16 check-in 2009-07-30 00:12:59 -05:00
statistics.xls Add logos and statistics spreadsheet 2010-04-25 21:58:03 -05:00
svg_regex.py Fix bug 638764: Error in rule_ellptical_arc crashes Scour, by applying the fix provided by Walther. 2010-11-14 23:19:51 -05:00
svg_transform.py Fix Bug 604000: Correctly remove overflow attributes on marker, pattern, svg 2010-07-11 11:18:26 -07:00
testcss.py Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes 2010-03-25 17:48:15 -07:00
testscour.py Apply the patches submitted by Jan Thor in bug 714731. These patches remove attributes whose value equals its default value per the SVG specification, except if an element's parent node defines a non-default value explicitly, and add unit tests. 2011-02-10 19:48:53 -05:00
webscour.py Add Martin's patch for rewrite of command-line option parsing. Add CGI and mod_python versions of a web interface. 2009-05-22 09:04:40 -05:00
yocto_css.py Fix bug with polygon point parsing. Fix bug 368716: tiny CSS parser to find referenced elements in style element 2009-08-31 00:11:34 -05:00

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:

- my head
- Sam Ruby's SVG Tidy script: http://intertwingly.net/code/svgtidy/svgtidy.rb
- Inkscape's proposal for a 'cleaned SVG': http://wiki.inkscape.org/wiki/index.php/Save_Cleaned_SVG

Regards,

Jeff Schiller
2009-04-06
codedread@gmail.com
http://blog.codedread.com/