labs / diagrams_source /
..
clipart General clean up. Embed images. Add icon macro. 1 year ago
lab02 General clean up. Embed images. Add icon macro. 1 year ago
lab06 General clean up. Embed images. Add icon macro. 1 year ago
lab09 General clean up. Embed images. Add icon macro. 1 year ago
sequence_tutorial Improvements to sequence tutorial. 11 months ago
README.txt General clean up. Embed images. Add icon macro. 1 year ago
README.txt
This is where we put the original versions of images so that we can update them if needed.

_opt versions of the files are compressed/optimised and are the versions that are embedded in the Wiki.

Optimizing SVG files:

svgcleaner seems to be the best tool for reliably shrinkifying SVG files (does a better job of using groups to apply shared styles than scour):

https://github.com/RazrFalcon/svgcleaner

Available in Arch as community/svgcleaner.

Run using:

svgcleaner file.svg file_opt.svg

if you want the output in a human readable form rather than one massive line:

svgcleaner --indent=1 file.svg file_opt.svg

Optimising PNG files:

oxipng seems to be the best of the commonly available PNG optimisers.  It has support for Zopfli which generally offers better compression than zlib.

https://github.com/shssoichiro/oxipng

Available in Arch as community/oxipng.

Run using:

oxipng --strip safe --alpha --zopfli -o max --out file_opt.png file.png