<p></p>
<blockquote>
<p dir="auto">copy+paste error in the issue description</p>
</blockquote>
<p dir="auto">Oops, fixed. I was indeed copy-pasting all of the PR descriptions as I split them off from the initial PR.</p>
<blockquote>
<p dir="auto">Some people want to edit the logo: <a href="https://community.openstreetmap.org/t/binary-numbers-on-osm-logo-could-be-changed-to-have-a-real-meaning/100498" rel="nofollow">https://community.openstreetmap.org/t/binary-numbers-on-osm-logo-could-be-changed-to-have-a-real-meaning/100498</a></p>
</blockquote>
<p dir="auto">Yes indeed, I checked the history of the logo:</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/assets/1073881/fa20bd58-1a3e-403a-b4b5-102590a6deec">image.png (view on web)</a></p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/assets/1073881/46666d10-9993-4a8d-b310-1ff599c424bf">image.png (view on web)</a></p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/assets/1073881/229399dc-6a80-49fe-ac7d-ed11db4c1afe">image.png (view on web)</a></p>
<p dir="auto">So in more than 10 years, the logo has been created and modified once. The other 2 commits are renames.</p>
<hr>
<p dir="auto">On the topic of using a tool like <code class="notranslate">svgo</code> for minifying / optimizing such SVGs. I tried this locally, and I found some problems with this approach, taking the source design files and using them directly to produce (minified) output for the web.</p>
<p dir="auto">Problems:</p>
<ul dir="auto">
<li>Clips sometimes do not work as expected</li>
<li>Text is not rendered correctly if the font is not present on the system, or not at all</li>
<li>Images such as in the OSM logo are still persisted (outside the viewable area) into the output SVG.</li>
</ul>
<p dir="auto">I ran the <code class="notranslate">svgo</code> tool like</p>
<pre class="notranslate"><code class="notranslate">svgo --input ... --output ...
</code></pre>
<p dir="auto">so with the default plugins enabled. I could not find any plugins in the list of plugins that would help us solve the above problems.</p>
<p dir="auto">Some example output of the terms SVG: <a href="https://github.com/openstreetmap/openstreetmap-website/assets/1073881/cb148cf6-e3f0-4c8c-93c6-d139bdc98645">terms.svg (view on web)</a></p>
<p dir="auto">My conclusion is that the <code class="notranslate">svgo</code> tool cannot solve the SVG minimization problem right from the source illustration files. So if the design illustrations should be kept intact, then they should be kept in a different directory (where <code class="notranslate">assets/</code> in the project root?).</p>
<p dir="auto">Then the process to convert such a designer SVG file into a file ready for minimization, would be:</p>
<ul dir="auto">
<li>Convert all text to paths</li>
<li>Remove clips by intersecting the paths in the clip with the clip mask</li>
<li>Remove any content outside the viewbox</li>
<li>Remove any image content</li>
</ul>
<p dir="auto">Then, I put the files in <a href="https://vecta.io/nano" rel="nofollow">https://vecta.io/nano</a> to minimize them, but they could also be processed by <code class="notranslate">svgo</code> (as long as all plugins are enabled, some are disabled at the moment in <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/config/image_optim.yml#L5">https://github.com/openstreetmap/openstreetmap-website/blob/master/config/image_optim.yml#L5</a>).</p>
<p dir="auto">After that I auto-formatted (Jetbrains IDE) the minimized SVGs to make them nicer to read for humans with newlines and indent.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4799#issuecomment-2115941696">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO5V242OKORXCAWBMDZCT3YLAVCNFSM6AAAAABHWZO7ZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVHE2DCNRZGY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLNZM4WAXOB4GN4ND3ZCT3YLA5CNFSM6AAAAABHWZO7ZOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT6D22UA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4799/c2115941696</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4799#issuecomment-2115941696",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4799#issuecomment-2115941696",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>