From 77d6d9929eca662c0cd5732fa20175495607ac7d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 30 Jun 2021 20:30:31 +0200 Subject: [PATCH] images: use svgcleaner to reduce logo SVG sizes Used svgcleaner[0] with the following safe[1] command: ``` svgcleaner INPUT.svg OUTPUT.svg --indent 1 --resolve-use no \ --convert-shapes no --group-by-style no --join-arcto-flags no \ --join-style-attributes no --remove-comments no --remove-declarations no \ --remove-invisible-elements no --remove-metadata no \ --remove-nonsvg-attributes no --remove-nonsvg-elements no \ --remove-text-attributes no --remove-title no \ --remove-unreferenced-ids no --trim-ids no --ungroup-groups no \ --list-separator comma ``` Resulting size reductions: Debian 22.51% smaller Proxmox 51.00% smaller Note that the Debian one had a small issue with a unused variable set which I reported[2] and cleaned up manually for now. [0]: https://github.com/RazrFalcon/svgcleaner [1]: https://commons.wikimedia.org/wiki/User:JoKalliauer/Optimization#svgcleaner [2]: https://github.com/RazrFalcon/svgcleaner/issues/240 Signed-off-by: Thomas Lamprecht --- src/images/debian-swirl-openlogo.svg | 112 +++--------- src/images/proxmox-symbol-x.svg | 254 +++------------------------ 2 files changed, 51 insertions(+), 315 deletions(-) diff --git a/src/images/debian-swirl-openlogo.svg b/src/images/debian-swirl-openlogo.svg index 50dcb70..9d870dc 100644 --- a/src/images/debian-swirl-openlogo.svg +++ b/src/images/debian-swirl-openlogo.svg @@ -1,86 +1,26 @@ - - - - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/images/proxmox-symbol-x.svg b/src/images/proxmox-symbol-x.svg index 7f74b73..1e3dc35 100644 --- a/src/images/proxmox-symbol-x.svg +++ b/src/images/proxmox-symbol-x.svg @@ -1,233 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + +