scour

SVG scrubber and optimizer (CLI and debhelper)

Install

All systems
curl cmd.cat/scour.sh
Debian Debian
apt-get install scour
Ubuntu
apt-get install scour
Arch Arch Linux
pacman -S scour
image/svg+xml Kali Linux
apt-get install scour
Fedora
dnf install scour
Windows (WSL2)
sudo apt-get update sudo apt-get install scour
OS X
brew install scour
Raspbian
apt-get install scour

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%.

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%.

python3-scour

SVG scrubber and optimizer (Python 3 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 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. Never use scour to overwrite your original file!