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,25 +1 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="364.000000pt" height="364.000000pt" viewBox="0 0 364.000000 364.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,364.000000) scale(0.100000,-0.100000)"
fill="#ff2564" stroke="none">
<path d="M1620 3625 c-215 -26 -398 -80 -585 -171 -386 -188 -678 -482 -856
-859 -133 -284 -197 -628 -170 -912 15 -159 37 -268 90 -444 39 -128 167 -375
264 -504 63 -85 246 -271 342 -347 116 -93 277 -184 460 -263 109 -47 348
-100 519 -116 104 -10 162 -10 267 0 604 54 1107 362 1422 871 191 310 291
723 258 1072 -13 148 -47 314 -91 447 -151 458 -507 859 -940 1058 -52 24
-102 48 -110 52 -19 10 -198 65 -260 80 -204 48 -409 61 -610 36z m585 -783
c160 -44 330 -143 420 -244 25 -29 66 -93 90 -143 95 -196 77 -380 -49 -506
-70 -70 -106 -83 -226 -84 -92 0 -111 3 -153 24 -69 36 -139 114 -166 186 -34
89 -31 174 10 316 65 224 39 339 -91 404 -42 22 -149 25 -202 6 -81 -27 -176
-132 -234 -256 -66 -143 -101 -343 -91 -529 11 -220 63 -371 172 -507 154
-190 412 -266 693 -203 117 26 232 88 345 187 55 48 72 58 92 53 14 -4 25 -12
25 -19 0 -19 -85 -180 -137 -262 -117 -180 -302 -347 -468 -420 -167 -74 -397
-99 -607 -65 -199 32 -403 136 -548 280 -294 295 -372 774 -191 1174 137 303
433 538 776 616 119 27 427 22 540 -8z"/>
</g>
</svg>
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="485.333" height="485.333" viewBox="0 0 364 364"><path d="M162 1.5c-21.5 2.6-39.8 8-58.5 17.1-38.6 18.8-67.8 48.2-85.6 85.9-13.3 28.4-19.7 62.8-17 91.2 1.5 15.9 3.7 26.8 9 44.4 3.9 12.8 16.7 37.5 26.4 50.4 6.3 8.5 24.6 27.1 34.2 34.7 11.6 9.3 27.7 18.4 46 26.3 10.9 4.7 34.8 10 51.9 11.6 10.4 1 16.2 1 26.7 0 60.4-5.4 110.7-36.2 142.2-87.1 19.1-31 29.1-72.3 25.8-107.2-1.3-14.8-4.7-31.4-9.1-44.7-15.1-45.8-50.7-85.9-94-105.8-5.2-2.4-10.2-4.8-11-5.2-1.9-1-19.8-6.5-26-8C202.6.3 182.1-1 162 1.5zm58.5 78.3c16 4.4 33 14.3 42 24.4 2.5 2.9 6.6 9.3 9 14.3 9.5 19.6 7.7 38-4.9 50.6-7 7-10.6 8.3-22.6 8.4-9.2 0-11.1-.3-15.3-2.4-6.9-3.6-13.9-11.4-16.6-18.6-3.4-8.9-3.1-17.4 1-31.6 6.5-22.4 3.9-33.9-9.1-40.4-4.2-2.2-14.9-2.5-20.2-.6-8.1 2.7-17.6 13.2-23.4 25.6-6.6 14.3-10.1 34.3-9.1 52.9 1.1 22 6.3 37.1 17.2 50.7 15.4 19 41.2 26.6 69.3 20.3 11.7-2.6 23.2-8.8 34.5-18.7 5.5-4.8 7.2-5.8 9.2-5.3 1.4.4 2.5 1.2 2.5 1.9 0 1.9-8.5 18-13.7 26.2-11.7 18-30.2 34.7-46.8 42-16.7 7.4-39.7 9.9-60.7 6.5-19.9-3.2-40.3-13.6-54.8-28-29.4-29.5-37.2-77.4-19.1-117.4 13.7-30.3 43.3-53.8 77.6-61.6 11.9-2.7 42.7-2.2 54 .8z" fill="#ff2564"/></svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB