From 9142b3e4593e887924fb04af915b70632917c9ff Mon Sep 17 00:00:00 2001 From: Michal Nazarewicz Date: Tue, 3 Mar 2026 16:29:09 +0100 Subject: [PATCH] logos: optimise SVG images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The main motivation for this change was unnecessary double point in the icon path. The top point of the right corner of the icon are in fact two separate points. I’ve used Inkscape’s ‘Join selected nodes’ function to merge them. I’ve then rounded coordinates in the path to two decimal points (again using Inkscape) and finally using a simple regex eliminate unnecessary spaces in the `d` attribute. Working on that I've noticed that the clip paths don’t actually do anything: the paths do not go over the clip paths. I’ve thus removed the clip paths. The styles for the path were over-specified. `fill-opacity: 1`, `fill-rule: nonzero` and `stroke: none` are all initial values of the properties, so I’ve stripped them out. Finally, in the Logo images, the `width` attribute was specified without a unit. To match the `height` and the Icon images, I’ve added `pt` unit. Signed-off-by: Michal Nazarewicz --- static/images/logos/downloads/Git-Icon-1788C.svg | 2 +- static/images/logos/downloads/Git-Icon-Black.svg | 2 +- static/images/logos/downloads/Git-Icon-White.svg | 2 +- static/images/logos/downloads/Git-Logo-1788C.svg | 2 +- static/images/logos/downloads/Git-Logo-2Color.svg | 2 +- static/images/logos/downloads/Git-Logo-Black.svg | 2 +- static/images/logos/downloads/Git-Logo-White.svg | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/static/images/logos/downloads/Git-Icon-1788C.svg b/static/images/logos/downloads/Git-Icon-1788C.svg index 5bf444b9be..14b4c149ee 100644 --- a/static/images/logos/downloads/Git-Icon-1788C.svg +++ b/static/images/logos/downloads/Git-Icon-1788C.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/images/logos/downloads/Git-Icon-Black.svg b/static/images/logos/downloads/Git-Icon-Black.svg index 6b6a26a2b9..2968523a40 100644 --- a/static/images/logos/downloads/Git-Icon-Black.svg +++ b/static/images/logos/downloads/Git-Icon-Black.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/images/logos/downloads/Git-Icon-White.svg b/static/images/logos/downloads/Git-Icon-White.svg index cb1a374e8b..d337016db9 100644 --- a/static/images/logos/downloads/Git-Icon-White.svg +++ b/static/images/logos/downloads/Git-Icon-White.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/images/logos/downloads/Git-Logo-1788C.svg b/static/images/logos/downloads/Git-Logo-1788C.svg index 1ec3aaf3a6..1ae03353cc 100644 --- a/static/images/logos/downloads/Git-Logo-1788C.svg +++ b/static/images/logos/downloads/Git-Logo-1788C.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/images/logos/downloads/Git-Logo-2Color.svg b/static/images/logos/downloads/Git-Logo-2Color.svg index 170134e39e..f23e22f062 100644 --- a/static/images/logos/downloads/Git-Logo-2Color.svg +++ b/static/images/logos/downloads/Git-Logo-2Color.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/images/logos/downloads/Git-Logo-Black.svg b/static/images/logos/downloads/Git-Logo-Black.svg index 04cf119a2d..05a4cf446b 100644 --- a/static/images/logos/downloads/Git-Logo-Black.svg +++ b/static/images/logos/downloads/Git-Logo-Black.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/images/logos/downloads/Git-Logo-White.svg b/static/images/logos/downloads/Git-Logo-White.svg index f2961b9443..aa371c2117 100644 --- a/static/images/logos/downloads/Git-Logo-White.svg +++ b/static/images/logos/downloads/Git-Logo-White.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file