scour
scour copied to clipboard
Scour - An SVG Optimizer / Cleaner
That would be especially meaningful if the same base64-encoded image appears multiple times. It can also be helpful for other shapes, but it changes how the svg behaves when modified,...
It would be useful to have an option to remove attributes that aren't part of the SVG spec as they are added by many tools and editors. Possible configurations would...
I'm sure it must be possible to call scour, along with the various command-line flags, within Python code, which is interesting to optimize svg files generated by a Python program....
I use Affinity Designer for creating my svg-files. Unfortunately this tool stores all existing groups in the svg export, also of parts that I do not want to export. This...
I have a svg file with empty groups and line indention (using spaces). Applying `--indent=none` and `--no-line-breaks` does not work. Input: ```xml ``` Output: ```xml ``` Note that the leading...
Downstream report: https://gitlab.com/inkscape/extensions/-/issues/468 #### Steps to Replicate - Run [min_example_lost_clone](https://user-images.githubusercontent.com/22120290/167779244-c6160126-3374-4939-8227-21b9c1b6e46f.svg) through scour - `scour -i min_example_lost_clone` #### What happened? - The object the `` element links to is deleted (because...
https://adamj.eu/tech/2019/03/13/dropping-python-2-support/ Looking on the code ```console [tkloczko@devel-g2v scour-0.38.2]$ grep -rw six scour/scour.py:import six scour/scour.py:from six.moves import range, urllib scour/scour.py: for rid, nodes in six.iteritems(findReferencedElements(doc.documentElement)): scour/scour.py: for bucket in six.itervalues(grad_buckets): scour/scour.py:...
Emtpy `` without `sodipodi:role="line"` should be removed. (However SVGO supports this feature.) ## Input = Output ```svg ```` ## Output by SVGO (desired) ```svg ```
Prozessing [File:2008_South_Ossetia_war_ru.svg](https://commons.wikimedia.org/wiki/File:2008_South_Ossetia_war_ru.svg) leads to a movement of the airplains. scour [Input.svg.txt](https://github.com/scour-project/scour/files/2516754/Input.svg.txt) [Output.svg.txt](https://github.com/scour-project/scour/files/2516755/Output.svg.txt) scour rounds `translate(-10671 -125981) scale(2.65234)` to `translate(-10671 -125981) scale(2.6523)` scour rounds `matrix(2.65234 0 0 2.65234 -10671 -125981)` to...
This fixes processing of files where viewbox has leading/trailing whitespace.