NonSci output option and InkScape extension added by Aleon

This commit is contained in:
Marcus Lindvall 2023-01-31 11:02:40 +01:00
parent 0609c59676
commit a124f9f415
6 changed files with 269 additions and 12 deletions

View file

@ -18,20 +18,22 @@ Scour is open-source and licensed under [Apache License 2.0](https://github.com/
Scour was originally developed by Jeff "codedread" Schiller and Louis Simard in in 2010.
The project moved to GitLab in 2013 an is now maintained by Tobias "oberstet" Oberstein and Patrick "Ede_123" Storz.
This fork was created by Alexander Olsson ([alex@aleon.se](mailto:alex@aleon.se?subject=Scour)) at Aleon Apps.
## Installation
Scour requires [Python](https://www.python.org) 2.7 or 3.4+. Further, for installation, [pip](https://pip.pypa.io) should be used.
To install the [latest release](https://pypi.python.org/pypi/scour) of Scour from PyPI:
To install this fork:
```console
pip install scour
sudo make
```
To install the [latest trunk](https://github.com/codedread/scour) version (which might be broken!) from GitHub:
## Extension
Place the modified extension files in the Inkscape extension directory
```console
pip install https://github.com/codedread/scour/archive/master.zip
sudo cp extension/* /usr/share/inkscape/extensions/
```
## Usage
@ -61,3 +63,10 @@ Maximum scrubbing and a compressed SVGZ file:
scour -i input.svg -o output.svgz --enable-viewboxing --enable-id-stripping \
--enable-comment-stripping --shorten-ids --indent=none
```
Remove scientific notation from path data:
```console
scour -i input.svg -o output.svgz --nonsci-output
```