dh_scour
SVG scrubber and optimizer (Python 2 module)
Install
- All systems
-
curl cmd.cat/dh_scour.sh
- Debian
-
apt-get install python-scour
- Ubuntu
-
apt-get install python-scour
- Arch Linux
-
pacman -S scour
- Kali Linux
-
apt-get install scour
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install python-scour
- OS X
-
brew install scour
- Raspbian
-
apt-get install python-scour
- Dockerfile
- dockerfile.run/dh_scour
python-scour
SVG scrubber and optimizer (Python 2 module)
Scour is a Python module that aggressively cleans SVG files, removing a lot of unnecessary information that certain tools or authors embed into their documents. 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) while minimizing the file size. WARNING: Scour is intended to be run on files that have been edited in Vector Graphics editors such as Inkscape or Adobe Illustrator. Scour attempts to optimize the file, and as result, it will change the file's structure and (possibly) its semantics. If you have hand-edited your SVG files, you will probably not be happy with the output of Scour. Never use scour to overwrite your original file! This package also provides a dh_scour debhelper extension which optimizes all shipped SVGs during package build. If python-rsvg and python-cairo are available, it will also do a before/after comparison and discard the optimized image if they differ by more than 0.05%.
scour
SVG scrubber and optimizer (CLI and debhelper)
Scour is a Python module that aggressively cleans SVG files, removing a lot of unnecessary information that certain tools or authors embed into their documents. The goal of scour is to provide an identically rendered image (i.e. a scoured document should have no discernible visible differences from the original file) while minimizing the file size. WARNING: Scour is intended to be run on files that have been edited in Vector Graphics editors such as Inkscape or Adobe Illustrator. Scour attempts to optimize the file, and as result, it will change the file's structure and (possibly) its semantics. If you have hand-edited your SVG files, you will probably not be happy with the output of Scour. This package provides the "scour" command line utility and a dh_scour debhelper extension which optimizes all shipped SVGs during package build. If gir1.2-rsvg-2.0 and python3-gi-cairo are available, it will also do a before/after comparison and discard the optimized image if they differ by more than 0.05%.