minify svgs

This commit is contained in:
Arthur Lu
2022-12-18 19:58:08 -08:00
parent a31e370d4d
commit 8d4c5e122a
15 changed files with 15 additions and 143 deletions

View File

@@ -1,8 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="256" height="256" viewBox="0 0 256 256" xml:space="preserve">
<defs>
</defs>
<g style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;" transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)" >
<path d="M 83.843 7.245 H 6.157 C 2.757 7.245 0 10.002 0 13.402 v 49.074 c 0 3.4 2.757 6.157 6.157 6.157 h 28.431 v 8.243 h -7.564 c -1.623 0 -2.939 1.316 -2.939 2.939 s 1.316 2.939 2.939 2.939 h 35.954 c 1.623 0 2.939 -1.316 2.939 -2.939 s -1.316 -2.939 -2.939 -2.939 h -7.564 v -8.243 h 28.431 c 3.4 0 6.157 -2.757 6.157 -6.157 V 13.402 C 90 10.002 87.243 7.245 83.843 7.245 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,255,0); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" />
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M237.005 21.765H18.708c-9.554 0-17.301 7.747-17.301 17.301v137.898c0 9.554 7.747 17.301 17.3 17.301H98.6v23.163H77.344a8.26 8.26 0 000 16.517h101.03a8.26 8.26 0 000-16.517H157.12v-23.163h79.891c9.554 0 17.301-7.747 17.301-17.3V39.065c-.005-9.554-7.753-17.301-17.307-17.301z" fill="#0f0" stroke-width="0" stroke-miterlimit="10"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 408 B

View File

@@ -1,8 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="256" height="256" viewBox="0 0 256 256" xml:space="preserve">
<defs>
</defs>
<g style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;" transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)" >
<path d="M 83.843 7.245 H 6.157 C 2.757 7.245 0 10.002 0 13.402 v 49.074 c 0 3.4 2.757 6.157 6.157 6.157 h 28.431 v 8.243 h -7.564 c -1.623 0 -2.939 1.316 -2.939 2.939 s 1.316 2.939 2.939 2.939 h 35.954 c 1.623 0 2.939 -1.316 2.939 -2.939 s -1.316 -2.939 -2.939 -2.939 h -7.564 v -8.243 h 28.431 c 3.4 0 6.157 -2.757 6.157 -6.157 V 13.402 C 90 10.002 87.243 7.245 83.843 7.245 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(255,0,0); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" />
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M237.005 21.765H18.708c-9.554 0-17.301 7.747-17.301 17.301v137.898c0 9.554 7.747 17.301 17.3 17.301H98.6v23.163H77.344a8.26 8.26 0 000 16.517h101.03a8.26 8.26 0 000-16.517H157.12v-23.163h79.891c9.554 0 17.301-7.747 17.301-17.3V39.065c-.005-9.554-7.753-17.301-17.307-17.301z" fill="red" stroke-width="0" stroke-miterlimit="10"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 407 B