SVG-Optimiser
SVG-Optimiser copied to clipboard
A python module to clear up SVG files, especially those created in Inkscape
http://www.petercollingridge.appspot.com/svg-optimiser this fantastic tool at this url is no longer reachable
I guess it's been a while since this project ran.... I've updated it to "minimally" work on Python 3 (and run in a Docker Container using GitHub CodeSpace - easy)....
Sort of an odd request, I know, but it would go really well along with [SVGO](https://github.com/svg/svgo).
Since `jquery.js` isn't actually included with this project, linking to the latest version from the CDN makes the browser tool work out of the box.
I just had a svg break because I had a `<` in there and the optimizer just converted it into `
hi ,look follow: ` pc-dianhuae078-o Created with Sketch. ` this svg after the transformation,miss some part of the original information,what can I do
Try optimaze my svg on web-site: http://petercollingridge.appspot.com/svg-optimiser Original svg ![example](https://user-images.githubusercontent.com/1695720/28112797-8f289b24-6724-11e7-8913-9c295553f5ba.png) After optimization: ![example_afteroptimization](https://user-images.githubusercontent.com/1695720/28112908-d9f222ba-6724-11e7-938e-98ff9ea7ea73.png) You see that one element is missing Sources: [example.zip](https://github.com/petercollingridge/SVG-Optimiser/files/1141622/example.zip)
![path](https://cloud.githubusercontent.com/assets/8274753/6204638/005522b4-b579-11e4-85b2-3304478db507.png) ![inverse](https://cloud.githubusercontent.com/assets/8274753/6204639/006b7bb8-b579-11e4-8e11-5c2e1f1e1619.png) Relative to absolute function called 'toabs()' takes in Arc (A) commands also. An inverse function has been added, which creates a complement of the path element given as...
Python 3 support.
Rename Ids to shortest names possible. Rename Styles to shortest names possible. This is nice if ids are required. Saved around 30kb on most of my svgs that required ids.