1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-31 18:13:04 +02:00

Optimized SVG using SVGO (#597)

* Added script to optimize svgs

* Updated the svgs using svgo

* Made the optimize svg script into a workflow

* Added npm install step

* Change the env variable bug

* Clean up and updated check svg

* Change label name
This commit is contained in:
Thomas Bui
2021-05-15 12:14:13 -07:00
committed by GitHub
parent 2c6a21d9f4
commit d98a72cb9a
534 changed files with 1432 additions and 10831 deletions

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><g><g><linearGradient id="SVGID_1_KOTLIN" gradientUnits="userSpaceOnUse" x1="-4.0457" y1="59.1255" x2="13.6935" y2="39.7489"><stop offset="0" style="stop-color:#1C93C1"/><stop offset="0.1625" style="stop-color:#2391C0"/><stop offset="0.4043" style="stop-color:#378BBE"/><stop offset="0.6955" style="stop-color:#587EB9"/><stop offset="0.9952" style="stop-color:#7F6CB1"/></linearGradient><path fill="url(#SVGID_1_KOTLIN)" d="M 0,42.6 22.2,42.6 0,64.5 z"/><linearGradient id="SVGID_2_KOTLIN" gradientUnits="userSpaceOnUse" x1="1.0845" y1="74.4602" x2="30.9575" y2="43.2847"><stop offset="0" style="stop-color:#C757A7"/><stop offset="4.551384e-02" style="stop-color:#CA5A9E"/><stop offset="0.2413" style="stop-color:#D66779"/><stop offset="0.428" style="stop-color:#E17357"/><stop offset="0.6004" style="stop-color:#E97C3A"/><stop offset="0.7556" style="stop-color:#EF8324"/><stop offset="0.8879" style="stop-color:#F28817"/><stop offset="0.9819" style="stop-color:#F48912"/></linearGradient><path fill="url(#SVGID_2_KOTLIN)" d="M 0,85.4 42.8,42.6 21.6,42.6 0,63.9 z"/><linearGradient id="SVGID_3_KOTLIN" gradientUnits="userSpaceOnUse" x1="14.3795" y1="92.4959" x2="31.4869" y2="74.7805"><stop offset="0" style="stop-color:#1C93C1"/><stop offset="0.2156" style="stop-color:#2D8EBF"/><stop offset="0.6399" style="stop-color:#587EB9"/><stop offset="0.9952" style="stop-color:#7F6CB1"/></linearGradient><path fill="url(#SVGID_3_KOTLIN)" d="M 42.4,85.4 21.2,64.2 0,85.4 z"/></g><g><path d="M 50,75.6 50,52.8 55.1,52.8 55.1,62.6 64.4,52.8 70.2,52.8 60.9,62.6 70.2,75.6 64.4,75.6 57.6,66.1 55.1,68.6 55.1,75.6 z"/><path d="M77.5,58.2c-5.1,0-9.2,3.9-9.2,8.7c0,4.8,4.1,8.7,9.2,8.7c5.1,0,9.2-3.9,9.2-8.7C86.7,62.1,82.6,58.2,77.5,58.2z M77.5,71.8c-2.7,0-4.9-2.2-4.9-4.9c0-2.7,2.2-4.9,4.9-4.9s4.9,2.2,4.9,4.9C82.4,69.6,80.2,71.8,77.5,71.8z"/><path d="M87.9,53.8H93v4.5h4v4.2h-4v8.2c0,0,1.5,2.1,4,0v4.5c0,0-4,2-7.5,0c0,0-1.6-1.6-1.6-3.5c0-1.8,0-9.2,0-9.2h-2v-4.4l2,0.1 V53.8z"/><rect x="98.5" y="51.9" width="4.9" height="23.7"/><rect x="105.2" y="51.9" width="5" height="4.2"/><rect x="105.2" y="58.3" width="5" height="17.3"/><path d="M111.9,58.3h5.1V61c0,0,4.7-7.2,10.4,0l0.5,1.5v13.1h-5V65c0,0-2.8-5.3-5.9,0v10.6h-5.1V58.3z"/></g></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><linearGradient id="kotlin-original-wordmark-a" gradientUnits="userSpaceOnUse" x1="-4.046" y1="59.126" x2="13.694" y2="39.749"><stop offset="0" stop-color="#1c93c1"/><stop offset=".163" stop-color="#2391c0"/><stop offset=".404" stop-color="#378bbe"/><stop offset=".696" stop-color="#587eb9"/><stop offset=".995" stop-color="#7f6cb1"/></linearGradient><path fill="url(#kotlin-original-wordmark-a)" d="M0 42.6h22.2L0 64.5z"/><linearGradient id="kotlin-original-wordmark-b" gradientUnits="userSpaceOnUse" x1="1.085" y1="74.46" x2="30.957" y2="43.285"><stop offset="0" stop-color="#c757a7"/><stop offset=".046" stop-color="#ca5a9e"/><stop offset=".241" stop-color="#d66779"/><stop offset=".428" stop-color="#e17357"/><stop offset=".6" stop-color="#e97c3a"/><stop offset=".756" stop-color="#ef8324"/><stop offset=".888" stop-color="#f28817"/><stop offset=".982" stop-color="#f48912"/></linearGradient><path fill="url(#kotlin-original-wordmark-b)" d="M0 85.4l42.8-42.8H21.6L0 63.9z"/><linearGradient id="kotlin-original-wordmark-c" gradientUnits="userSpaceOnUse" x1="14.38" y1="92.496" x2="31.487" y2="74.781"><stop offset="0" stop-color="#1c93c1"/><stop offset=".216" stop-color="#2d8ebf"/><stop offset=".64" stop-color="#587eb9"/><stop offset=".995" stop-color="#7f6cb1"/></linearGradient><path fill="url(#kotlin-original-wordmark-c)" d="M42.4 85.4L21.2 64.2 0 85.4z"/><g><path d="M50 75.6V52.8h5.1v9.8l9.3-9.8h5.8l-9.3 9.8 9.3 13h-5.8l-6.8-9.5-2.5 2.5v7z"/><path d="M77.5 58.2c-5.1 0-9.2 3.9-9.2 8.7 0 4.8 4.1 8.7 9.2 8.7s9.2-3.9 9.2-8.7c0-4.8-4.1-8.7-9.2-8.7zm0 13.6c-2.7 0-4.9-2.2-4.9-4.9s2.2-4.9 4.9-4.9 4.9 2.2 4.9 4.9-2.2 4.9-4.9 4.9z"/><path d="M87.9 53.8H93v4.5h4v4.2h-4v8.2s1.5 2.1 4 0v4.5s-4 2-7.5 0c0 0-1.6-1.6-1.6-3.5v-9.2h-2v-4.4l2 .1v-4.4zM98.5 51.9h4.9v23.7h-4.9zM105.2 51.9h5v4.2h-5zM105.2 58.3h5v17.3h-5zM111.9 58.3h5.1V61s4.7-7.2 10.4 0l.5 1.5v13.1h-5V65s-2.8-5.3-5.9 0v10.6h-5.1V58.3z"/></g></svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><g><linearGradient id="SVGID_1_KOTLIN" gradientUnits="userSpaceOnUse" x1="-11.8991" y1="48.6943" x2="40.2992" y2="-8.3222"><stop offset="0" style="stop-color:#1C93C1"/><stop offset="0.1625" style="stop-color:#2391C0"/><stop offset="0.4043" style="stop-color:#378BBE"/><stop offset="0.6955" style="stop-color:#587EB9"/><stop offset="0.9952" style="stop-color:#7F6CB1"/></linearGradient><path fill="url(#SVGID_1_KOTLIN)" d="M 0,0 65.4,0 0,64.4 z"/><linearGradient id="SVGID_2_KOTLIN" gradientUnits="userSpaceOnUse" x1="43.5526" y1="149.1739" x2="95.9878" y2="94.8756"><stop offset="0" style="stop-color:#1C93C1"/><stop offset="0.2156" style="stop-color:#2D8EBF"/><stop offset="0.6399" style="stop-color:#587EB9"/><stop offset="0.9952" style="stop-color:#7F6CB1"/></linearGradient><path fill="url(#SVGID_2_KOTLIN)" d="M 128,128 64.6,62.6 0,128 z"/><linearGradient id="SVGID_3_KOTLIN" gradientUnits="userSpaceOnUse" x1="3.2398" y1="95.2486" x2="92.4815" y2="2.1156"><stop offset="0" style="stop-color:#C757A7"/><stop offset="4.551384e-02" style="stop-color:#CA5A9E"/><stop offset="0.2413" style="stop-color:#D66779"/><stop offset="0.428" style="stop-color:#E17357"/><stop offset="0.6004" style="stop-color:#E97C3A"/><stop offset="0.7556" style="stop-color:#EF8324"/><stop offset="0.8879" style="stop-color:#F28817"/><stop offset="0.9819" style="stop-color:#F48912"/></linearGradient><path fill="url(#SVGID_3_KOTLIN)" d="M 0,128 128,0 64.6,0 0,63.7 z"/></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><linearGradient id="kotlin-original-a" gradientUnits="userSpaceOnUse" x1="-11.899" y1="48.694" x2="40.299" y2="-8.322"><stop offset="0" stop-color="#1c93c1"/><stop offset=".163" stop-color="#2391c0"/><stop offset=".404" stop-color="#378bbe"/><stop offset=".696" stop-color="#587eb9"/><stop offset=".995" stop-color="#7f6cb1"/></linearGradient><path fill="url(#kotlin-original-a)" d="M0 0h65.4L0 64.4z"/><linearGradient id="kotlin-original-b" gradientUnits="userSpaceOnUse" x1="43.553" y1="149.174" x2="95.988" y2="94.876"><stop offset="0" stop-color="#1c93c1"/><stop offset=".216" stop-color="#2d8ebf"/><stop offset=".64" stop-color="#587eb9"/><stop offset=".995" stop-color="#7f6cb1"/></linearGradient><path fill="url(#kotlin-original-b)" d="M128 128L64.6 62.6 0 128z"/><linearGradient id="kotlin-original-c" gradientUnits="userSpaceOnUse" x1="3.24" y1="95.249" x2="92.481" y2="2.116"><stop offset="0" stop-color="#c757a7"/><stop offset=".046" stop-color="#ca5a9e"/><stop offset=".241" stop-color="#d66779"/><stop offset=".428" stop-color="#e17357"/><stop offset=".6" stop-color="#e97c3a"/><stop offset=".756" stop-color="#ef8324"/><stop offset=".888" stop-color="#f28817"/><stop offset=".982" stop-color="#f48912"/></linearGradient><path fill="url(#kotlin-original-c)" d="M0 128L128 0H64.6L0 63.7z"/></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><g><path fill="#7F6CB1" d="M 0,42.6 20.2,42.6 0,62.5 z"/><path fill="#7F6CB1" d="M 0,85.4 42.8,42.6 21.6,42.6 0,63.9 z"/><path fill="#7F6CB1" d="M 42.8,85.4 21.6,65.2 1.4,85.4 z"/><path fill="#7F6CB1" d="M 50,75.2 50,52.4 55.1,52.4 55.1,62.1 64.4,52.4 70.2,52.4 60.9,62.1 70.2,75.2 64.4,75.2 57.6,65.7 55.1,68.2 55.1,75.2 z"/><path fill="#7F6CB1" d="M77.5,57.8c-5.1,0-9.2,3.9-9.2,8.7c0,4.8,4.1,8.7,9.2,8.7c5.1,0,9.2-3.9,9.2-8.7 C86.7,61.7,82.6,57.8,77.5,57.8z M77.5,71.4c-2.7,0-4.9-2.2-4.9-4.9c0-2.7,2.2-4.9,4.9-4.9s4.9,2.2,4.9,4.9 C82.4,69.2,80.2,71.4,77.5,71.4z"/><path fill="#7F6CB1" d="M87.9,53.4H93v4.5h4v4.2h-4v8.2c0,0,1.5,2.1,4,0v4.5c0,0-4,2-7.5,0c0,0-1.6-1.6-1.6-3.5c0-1.8,0-9.2,0-9.2h-2 v-4.4l2,0.1V53.4z"/><rect x="98.5" y="51.4" fill="#7F6CB1" width="4.9" height="23.7"/><rect x="105.2" y="51.4" fill="#7F6CB1" width="5" height="4.2"/><rect x="105.2" y="57.9" fill="#7F6CB1" width="5" height="17.3"/><path fill="#7F6CB1" d="M111.9,57.9h5.1v2.7c0,0,4.7-7.2,10.4,0l0.5,1.5v13.1h-5V64.6c0,0-2.8-5.3-5.9,0v10.6h-5.1V57.9z"/></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><g fill="#7F6CB1"><path d="M0 42.6h20.2L0 62.5zM0 85.4l42.8-42.8H21.6L0 63.9zM42.8 85.4L21.6 65.2 1.4 85.4zM50 75.2V52.4h5.1v9.7l9.3-9.7h5.8l-9.3 9.7 9.3 13.1h-5.8l-6.8-9.5-2.5 2.5v7z"/><path d="M77.5 57.8c-5.1 0-9.2 3.9-9.2 8.7 0 4.8 4.1 8.7 9.2 8.7s9.2-3.9 9.2-8.7c0-4.8-4.1-8.7-9.2-8.7zm0 13.6c-2.7 0-4.9-2.2-4.9-4.9s2.2-4.9 4.9-4.9 4.9 2.2 4.9 4.9-2.2 4.9-4.9 4.9z"/><path d="M87.9 53.4H93v4.5h4v4.2h-4v8.2s1.5 2.1 4 0v4.5s-4 2-7.5 0c0 0-1.6-1.6-1.6-3.5v-9.2h-2v-4.4l2 .1v-4.4zM98.5 51.4h4.9v23.7h-4.9zM105.2 51.4h5v4.2h-5zM105.2 57.9h5v17.3h-5zM111.9 57.9h5.1v2.7s4.7-7.2 10.4 0l.5 1.5v13.1h-5V64.6s-2.8-5.3-5.9 0v10.6h-5.1V57.9z"/></g></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 709 B

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><g><path fill="#7F6CB1" d="M 0,0 61.4,0 0,60.4 z"/><path fill="#7F6CB1" d="M 0,128 128,0 64.6,0 0,63.7 z"/><path fill="#7F6CB1" d="M 128,128 64.6,66.6 3.3,128 z"/></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><g fill="#7F6CB1"><path d="M0 0h61.4L0 60.4zM0 128L128 0H64.6L0 63.7zM128 128L64.6 66.6 3.3 128z"/></g></svg>

Before

Width:  |  Height:  |  Size: 241 B

After

Width:  |  Height:  |  Size: 171 B