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,15 +1 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="60px" height="60px" viewBox="0 0 60 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>gitlab_node_icon</title>
<g id="gitlab_node_icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
<g id="Group" transform="translate(1.000000, 3.000000)">
<polygon id="Path" fill="#E24329" points="29.5 53.9670508 40.363375 20.7643729 18.636625 20.7643729"></polygon>
<polygon id="Path" fill="#FC6D26" points="29.5 53.9670508 18.636625 20.7643729 3.4109375 20.7643729"></polygon>
<path d="M3.4109375,20.7643729 L0.110625,30.8596271 C-0.190581485,31.779688 0.139159543,32.7876713 0.92740625,33.3564407 L29.5,53.9670508 L3.4109375,20.7643729 Z" id="Path" fill="#FCA326"></path>
<path d="M3.4109375,20.7643729 L18.6357031,20.7643729 L12.0931562,0.780711864 C11.7566719,-0.248033898 10.2908906,-0.248033898 9.95440625,0.780711864 L3.4109375,20.7643729 Z" id="Path" fill="#E24329"></path>
<polygon id="Path" fill="#FC6D26" points="29.5 53.9670508 40.363375 20.7643729 55.5890625 20.7643729"></polygon>
<path d="M55.5890625,20.7643729 L58.889375,30.8504746 C59.1905815,31.7705355 58.8608405,32.7785188 58.0725937,33.3472881 L29.5,53.9670508 L55.5890625,20.7643729 Z" id="Path" fill="#FCA326"></path>
<path d="M55.5890625,20.7643729 L40.363375,20.7643729 L46.9068438,0.771559322 C47.2433281,-0.257186441 48.7091094,-0.257186441 49.0455937,0.771559322 L55.5890625,20.7643729 Z" id="Path" fill="#E24329"></path>
</g>
</g>
</svg>
<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path fill="#E24329" d="m30.5 56.967 10.863-33.203H19.637z"/><path fill="#FC6D26" d="M30.5 56.967 19.637 23.764H4.41z"/><path d="M4.41 23.764 1.11 33.86c-.3.92.03 1.928.817 2.496L30.5 56.967 4.41 23.764z" fill="#FCA326"/><path d="M4.41 23.764h15.226L13.093 3.781c-.336-1.029-1.802-1.029-2.139 0L4.411 23.764z" fill="#E24329"/><path fill="#FC6D26" d="m30.5 56.967 10.863-33.203H56.59z"/><path d="m56.59 23.764 3.3 10.086a2.224 2.224 0 0 1-.817 2.497L30.5 56.967l26.09-33.203z" fill="#FCA326"/><path d="M56.59 23.764H41.362l6.544-19.992c.336-1.03 1.802-1.03 2.139 0l6.543 19.992z" fill="#E24329"/></g></svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 750 B