Optimize svg (#1653)

* add optimize-svg command to npm scripts

* run svgo over all svg assets in repo
This commit is contained in:
Konstantin Nosov
2021-04-17 18:17:16 +03:00
committed by GitHub
parent c80b0ebfd9
commit 5e7f27d137
74 changed files with 75 additions and 842 deletions

View File

@@ -1,6 +1 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="256px" height="310px" viewBox="0 0 256 310" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
<g>
<path d="M18.432,180.968727 L108.916364,90.4843636 C120.645818,78.9410909 127.906909,62.7432727 127.906909,45.056 C127.906909,27.5549091 120.832,11.5432727 109.474909,0 L18.9905455,90.4843636 C7.26109091,102.027636 0,118.225455 0,135.912727 C0,153.6 7.07490909,169.425455 18.432,180.968727 Z M237.568,128.093091 L147.083636,218.577455 C135.354182,230.120727 128.093091,246.318545 128.093091,264.005818 C128.093091,281.506909 135.168,297.518545 146.525091,309.061818 L237.009455,218.577455 C248.738909,207.034182 256,190.836364 256,173.149091 C256,155.461818 248.925091,139.636364 237.568,128.093091 Z M237.009455,90.6705455 C248.738909,79.1272727 256,62.9294545 256,45.2421818 C256,27.7410909 248.925091,11.7294545 237.568,0.186181818 L18.9905455,218.577455 C7.26109091,230.306909 0,246.318545 0,264.192 C0,281.693091 7.07490909,297.704727 18.432,309.248 L237.009455,90.6705455 Z" fill="#1292EE"></path>
</g>
</svg>
<svg width="256" height="310" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="m18.432 180.969 90.484-90.485a63.717 63.717 0 0 0 18.99-45.428A64.245 64.245 0 0 0 109.476 0L18.99 90.484A63.717 63.717 0 0 0 0 135.913c0 17.687 7.075 33.512 18.432 45.056zm219.136-52.876-90.484 90.484a63.717 63.717 0 0 0-18.99 45.429 64.245 64.245 0 0 0 18.431 45.056l90.484-90.485A63.717 63.717 0 0 0 256 173.15c0-17.687-7.075-33.513-18.432-45.056zm-.559-37.422A63.717 63.717 0 0 0 256 45.242 64.245 64.245 0 0 0 237.568.186L18.991 218.577C7.26 230.307 0 246.32 0 264.192a64.245 64.245 0 0 0 18.432 45.056L237.009 90.671z" fill="#1292EE"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 652 B