SVG files: process with svgcleaner on install, if available
Also adding an optional check for losslessness using ImageMagick's compare, which renders all cards and the back from the original and the installed files and compares them for equality.
svg-ancient-egyptians & svg-penguins both get issues, so are for now excluded from the cleaning.
Impressive result on oxygen-white which wins with reduction by 76 %, so just 1/4 in size afterwards (numbers with 7z compression, similar relative reduction with gzip one):
Card set | Without | With | Reduction by |
---|---|---|---|
../share/carddecks/svg-ancient-egyptians/Ancient_Egyptians.svgz | 318034 | 318034 | 0,00 % |
../share/carddecks/svg-dondorf/dondorf.svgz | 2744792 | 2033088 | 25,93 % |
../share/carddecks/svg-future/future.svgz | 439051 | 431573 | 1,70 % |
../share/carddecks/svg-gm-paris/paris.svgz | 1128120 | 572637 | 49,24 % |
../share/carddecks/svg-jolly-royal/jolly-royal.svgz | 181840 | 134050 | 26,28 % |
../share/carddecks/svg-konqi-modern/konqi.svgz | 227137 | 226469 | 0,29 % |
../share/carddecks/svg-nicu-ornamental/ornamental.svgz | 85759 | 69468 | 19,00 % |
../share/carddecks/svg-nicu-white/white.svgz | 147968 | 93298 | 36,95 % |
../share/carddecks/svg-oxygen-air/oxygen-air.svgz | 165819 | 133999 | 19,19 % |
../share/carddecks/svg-oxygen/oxygen.svgz | 506214 | 144169 | 71,52 % |
../share/carddecks/svg-oxygen-white/oxygen-white.svgz | 868084 | 206100 | 76,26 % |
../share/carddecks/svg-penguins/penguins.svgz | 220365 | 220365 | 0,00 % |
../share/carddecks/svg-standard/standard.svgz | 18935 | 16959 | 10,44 % |
../share/carddecks/svg-tigullio-international/tigullio-international.svgz | 131366 | 106396 | 19,01 % |
../share/carddecks/svg-xskat-french/french.svgz | 171206 | 170822 | 0,22 % |
../share/carddecks/svg-xskat-german/german.svgz | 126159 | 88565 | 29,80 % |
Total | 7480849 | 4965992 | 33,62 % |
Edited by Friedrich W. H. Kossebau