optimize svg with svgcleaner

This commit is contained in:
tehcneko 2025-08-10 02:39:34 +01:00
commit b3a4f44304
3 changed files with 3 additions and 14 deletions

View file

@ -1,5 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="8">
<circle cx="6" cy="4" r="1" fill="#999" />
<circle cx="10" cy="4" r="1" fill="#999" />
<circle cx="14" cy="4" r="1" fill="#999" />
</svg>
<svg height="8" width="20" xmlns="http://www.w3.org/2000/svg"><g fill="#999"><circle cx="6" cy="4" r="1"/><circle cx="10" cy="4" r="1"/><circle cx="14" cy="4" r="1"/></g></svg>

Before

Width:  |  Height:  |  Size: 212 B

After

Width:  |  Height:  |  Size: 176 B

Before After
Before After

View file

@ -1,5 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="20">
<circle cx="4" cy="6" r="1" fill="#999" />
<circle cx="4" cy="10" r="1" fill="#999" />
<circle cx="4" cy="14" r="1" fill="#999" />
</svg>
<svg height="20" width="8" xmlns="http://www.w3.org/2000/svg"><g fill="#999"><circle cx="4" cy="6" r="1"/><circle cx="4" cy="10" r="1"/><circle cx="4" cy="14" r="1"/></g></svg>

Before

Width:  |  Height:  |  Size: 212 B

After

Width:  |  Height:  |  Size: 176 B

Before After
Before After

View file

@ -1,4 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="2" height="20">
<path fill="#fff" d="M0 0h1v20H0z" />
<path fill="#c4c4c4" d="M1 0h1v20H1z" />
</svg>
<svg height="20" width="2" xmlns="http://www.w3.org/2000/svg"><path d="m0 0h1v20h-1z" fill="#fff"/><path d="m1 0h1v20h-1z" fill="#c4c4c4"/></svg>

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 145 B

Before After
Before After