Optimize wxlogo.svg with SVGO

This commit is contained in:
Maarten Bent 2022-03-17 22:39:37 +01:00
parent e43895e531
commit 0ac7f2295f

View File

@ -1,275 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="124.606" height="100" version="1.0">
<!-- Created with Inkscape (http://www.inkscape.org/) --> <defs>
<linearGradient id="a">
<svg <stop offset="0" style="stop-color:red;stop-opacity:1"/>
xmlns:dc="http://purl.org/dc/elements/1.1/" <stop style="stop-color:#ffe0e0;stop-opacity:1" offset="1"/>
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="124.60606"
height="100"
id="svg1336"
sodipodi:version="0.32"
inkscape:version="0.48.5 r10040"
version="1.0"
sodipodi:docname="blocks.svg"
inkscape:export-filename="/home/bryan/Projects/wxwebsite/downloads/logos/blocks.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs1338">
<linearGradient
id="linearGradient8721">
<stop
id="stop12145"
offset="0"
style="stop-color:#ff0000;stop-opacity:1;" />
<stop
style="stop-color:#ffe0e0;stop-opacity:1;"
offset="1"
id="stop8725" />
</linearGradient> </linearGradient>
<linearGradient <linearGradient id="b">
id="linearGradient4073"> <stop offset="0" style="stop-color:#fff;stop-opacity:1"/>
<stop <stop offset="1" style="stop-color:#fff;stop-opacity:0"/>
id="stop4075"
offset="0"
style="stop-color:#ffffff;stop-opacity:1;" />
<stop
id="stop4077"
offset="1"
style="stop-color:#ffffff;stop-opacity:0;" />
</linearGradient> </linearGradient>
<linearGradient <linearGradient id="c">
id="linearGradient6848"> <stop offset="0" style="stop-color:#00f;stop-opacity:1"/>
<stop <stop offset="1" style="stop-color:#e0e0ff;stop-opacity:1"/>
id="stop6850"
offset="0"
style="stop-color:#0000ff;stop-opacity:1;" />
<stop
id="stop6852"
offset="1"
style="stop-color:#e0e0ff;stop-opacity:1;" />
</linearGradient> </linearGradient>
<linearGradient <linearGradient id="d">
id="linearGradient6854"> <stop offset="0" style="stop-color:#ffffe0;stop-opacity:1"/>
<stop <stop offset="1" style="stop-color:#ff0;stop-opacity:1"/>
id="stop6856"
offset="0"
style="stop-color:#ffffe0;stop-opacity:1;" />
<stop
id="stop6858"
offset="1"
style="stop-color:#ffff00;stop-opacity:1;" />
</linearGradient> </linearGradient>
<linearGradient <linearGradient xlink:href="#a" id="e" gradientUnits="userSpaceOnUse" gradientTransform="translate(-45.008 -319.106) scale(1.00003)" x1="221.016" y1="674.085" x2="119.923" y2="474.091"/>
inkscape:collect="always" <linearGradient xlink:href="#b" id="f" gradientUnits="userSpaceOnUse" gradientTransform="matrix(.54556 0 0 .35025 -38.517 72.607)" x1="139.431" y1="520.743" x2="222.739" y2="520.743"/>
xlink:href="#linearGradient8721" <linearGradient xlink:href="#c" id="g" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.33416 0 0 1.33416 -90.283 -537.514)" x1="296.203" y1="571.529" x2="220.845" y2="421.623"/>
id="linearGradient3042" <linearGradient xlink:href="#b" id="h" gradientUnits="userSpaceOnUse" gradientTransform="matrix(.54556 0 0 .35025 91.483 -57.393)" x1="139.63" y1="520.742" x2="222.738" y2="520.742"/>
gradientUnits="userSpaceOnUse" <linearGradient xlink:href="#d" id="i" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.33416 0 0 1.33416 54.717 -442.514)" x1="221.022" y1="421.623" x2="296.726" y2="571.529"/>
gradientTransform="matrix(1.000031,0,0,1.000031,-45.00832,-319.1057)" <linearGradient xlink:href="#b" id="j" gradientUnits="userSpaceOnUse" gradientTransform="matrix(.54556 0 0 .35025 236.483 37.607)" x1="139.431" y1="520.742" x2="222.738" y2="520.742"/>
x1="221.01576"
y1="674.0849"
x2="119.92342"
y2="474.09103" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4073"
id="linearGradient3044"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.545556,0,0,0.350255,-38.51666,72.6073)"
x1="139.43112"
y1="520.74255"
x2="222.73912"
y2="520.74255" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6848"
id="linearGradient3046"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.334164,0,0,1.334164,-90.28301,-537.514)"
x1="296.20334"
y1="571.52942"
x2="220.84492"
y2="421.62283" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4073"
id="linearGradient3048"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.545558,0,0,0.350255,91.4834,-57.3926)"
x1="139.62971"
y1="520.74225"
x2="222.73819"
y2="520.74225" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6854"
id="linearGradient3050"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.334164,0,0,1.334164,54.71699,-442.514)"
x1="221.02206"
y1="421.6228"
x2="296.72556"
y2="571.52942" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4073"
id="linearGradient3052"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.545558,0,0,0.350255,236.4833,37.6074)"
x1="139.43103"
y1="520.74225"
x2="222.73837"
y2="520.74225" />
</defs> </defs>
<sodipodi:namedview <g style="display:inline" transform="matrix(.1697 0 0 .1697 17.758 17.758)">
inkscape:document-units="px" <path d="M69.34 155h111.32c24.565 0 44.34 19.775 44.34 44.34v111.32c0 24.565-19.775 44.34-44.34 44.34H69.34C44.775 355 25 335.225 25 310.66V199.34C25 174.775 44.775 155 69.34 155z" style="fill:url(#e);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38;marker-start:none"/>
pagecolor="#ffffff" <path d="M182.057 230.006c-48.531.525-61.796 56.69-104.9 57.25-18.635.235-34.53-12.555-52.157-27.7v51.653C25 335.457 44.797 355 69.361 355h111.32c24.564 0 44.32-19.543 44.32-43.791v-70.256c-12.033-6.606-25.967-11.135-42.944-10.947z" style="opacity:.25;fill:red;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
bordercolor="#666666" <rect rx="17.844" ry="17.844" y="180" x="50" height="150" width="33" style="fill:url(#f);fill-opacity:1;fill-rule:nonzero;stroke:none"/>
borderopacity="1.0" <path d="M69.468 161.343H180.66c21.128 0 37.997 16.879 37.997 38.006v111.32c0 21.135-16.865 37.988-37.997 37.988H69.34c-21.132 0-37.997-16.86-37.997-37.988V199.311c0-21.132 16.99-37.968 38.125-37.968z" style="fill:none;stroke:maroon;stroke-width:12.68599987;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:20;stroke-opacity:.50196078;stroke-dasharray:none;stroke-dashoffset:0;marker-start:none"/>
inkscape:pageopacity="0.0" </g>
inkscape:pageshadow="2" <g style="display:inline" transform="matrix(.1697 0 0 .1697 17.758 17.758)">
inkscape:zoom="2" <path d="M199.34 25h111.32C335.225 25 355 44.775 355 69.34v111.32c0 24.565-19.775 44.34-44.34 44.34H199.34c-24.565 0-44.34-19.775-44.34-44.34V69.34C155 44.775 174.775 25 199.34 25z" style="fill:url(#g);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38.28099823;marker-start:none"/>
inkscape:cx="181.65684" <path d="M312.056 100.006c-48.53.525-61.795 56.69-104.898 57.25-18.636.235-34.53-12.555-52.158-27.7v51.653C155 205.457 174.797 225 199.361 225h111.32C335.245 225 355 205.457 355 181.209v-70.256c-12.032-6.606-25.966-11.135-42.944-10.947z" style="opacity:.25;fill:#00f;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
inkscape:cy="24.630367" <rect rx="17.844" ry="17.844" y="50" x="180" height="150" width="33" style="fill:url(#h);fill-opacity:1;fill-rule:nonzero;stroke:none"/>
inkscape:current-layer="layer1" <path style="fill:none;stroke:navy;stroke-width:12.68599987;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:20;stroke-opacity:.50196078;stroke-dasharray:none;stroke-dashoffset:0;marker-start:none;display:inline" d="M199.468 31.343H310.66c21.128 0 37.997 16.879 37.997 38.006v111.32c0 21.135-16.865 37.988-37.997 37.988H199.34c-21.132 0-37.997-16.86-37.997-37.988V69.311c0-21.132 16.99-37.968 38.125-37.968z"/>
id="namedview1340" </g>
showguides="true" <g transform="matrix(.1697 0 0 .1697 17.758 17.758)">
inkscape:guide-bbox="true" <path d="M344.34 120h111.32c24.565 0 44.34 19.775 44.34 44.34v111.32c0 24.565-19.775 44.34-44.34 44.34H344.34c-24.565 0-44.34-19.775-44.34-44.34V164.34c0-24.565 19.775-44.34 44.34-44.34z" style="fill:url(#i);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38.28144073;marker-start:none;display:inline"/>
inkscape:window-width="1920" <path d="M457.056 195.006c-48.53.525-61.795 56.69-104.898 57.25-18.636.235-34.53-12.555-52.158-27.7v51.653C300 300.457 319.797 320 344.361 320h111.32C480.245 320 500 300.457 500 276.209v-70.256c-12.032-6.606-25.966-11.135-42.944-10.947z" style="opacity:.25;fill:#c0c000;fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline"/>
inkscape:window-height="1014" <rect rx="17.844" ry="17.844" y="145" x="325" height="150" width="33" style="fill:url(#j);fill-opacity:1;fill-rule:nonzero;stroke:none;display:inline"/>
inkscape:window-x="0" <path d="M344.468 126.343H455.66c21.128 0 37.997 16.879 37.997 38.006v111.32c0 21.135-16.865 37.988-37.997 37.988H344.34c-21.132 0-37.997-16.86-37.997-37.988V164.311c0-21.132 16.99-37.968 38.125-37.968z" style="fill:none;stroke:olive;stroke-width:12.68599987;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:20;stroke-opacity:.50196078;stroke-dasharray:none;stroke-dashoffset:0;marker-start:none;display:inline"/>
inkscape:window-y="27"
showgrid="false"
units="px"
guidetolerance="20"
objecttolerance="20"
inkscape:snap-global="true"
inkscape:snap-bbox="false"
inkscape:snap-page="true"
inkscape:bbox-paths="true"
gridtolerance="10"
fit-margin-top="22"
fit-margin-left="22"
fit-margin-right="22"
fit-margin-bottom="22"
inkscape:window-maximized="1" />
<metadata
id="metadata1342">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<cc:license
rdf:resource="https://creativecommons.org/licenses/sa/1.0/" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(7.600007,-258.296)">
<g
id="g1457"
transform="matrix(0.16969696,0,0,0.16969696,10.157569,276.05358)">
<g
style="display:inline"
inkscape:label="Red"
id="layer2">
<path
id="rect1393"
d="m 69.33962,154.99997 111.32077,0 c 24.56415,0 44.33961,19.77547 44.33961,44.33962 l 0,111.32078 c 0,24.56414 -19.77546,44.33961 -44.33961,44.33961 l -111.32077,0 C 44.775476,354.99998 25,335.22451 25,310.66037 l 0,-111.32078 c 0,-24.56415 19.775476,-44.33962 44.33962,-44.33962 z"
style="fill:url(#linearGradient3042);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38;marker-start:none"
inkscape:connector-curvature="0" />
<path
id="path2231"
d="m 182.05654,230.00562 c -48.53089,0.52516 -61.79585,56.69111 -104.89889,57.24964 -18.6358,0.23541 -34.530378,-12.5544 -52.157599,-27.69878 l 0,51.65226 c 0,24.24869 19.796853,43.79127 44.361069,43.79124 l 111.31955,0 c 24.56422,0 44.31938,-19.54253 44.31938,-43.79124 l 0,-70.25531 c -12.03236,-6.60668 -25.96585,-11.13587 -42.94351,-10.94781 z"
style="opacity:0.25;fill:#ff0000;fill-opacity:1;fill-rule:evenodd;stroke:none"
inkscape:connector-curvature="0" />
<rect
rx="17.843672"
ry="17.843672"
y="179.99998"
x="50"
height="150"
width="33"
id="rect3182"
style="fill:url(#linearGradient3044);fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
sodipodi:nodetypes="ccccccccc"
id="path37247"
d="m 69.46811,161.34322 111.19211,0 c 21.12816,0 37.9969,16.87873 37.9969,38.00595 l 0,111.32031 c 0,21.13499 -16.86549,37.98752 -37.9969,37.98752 l -111.32032,0 c -21.131502,0 -37.9969,-16.86042 -37.9969,-37.98752 l 0,-111.35844 c 0,-21.13196 16.99051,-37.96782 38.12511,-37.96782 z"
style="fill:none;stroke:#800000;stroke-width:12.68599987;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:20;stroke-opacity:0.50196078;stroke-dasharray:none;stroke-dashoffset:0;marker-start:none"
inkscape:connector-curvature="0" />
</g>
<g
style="display:inline"
inkscape:label="Blue"
id="layer3">
<path
id="path5922"
d="m 199.33962,24.99998 111.32078,0 c 24.56415,0 44.3396,19.77547 44.3396,44.3396 l 0,111.32079 c 0,24.56414 -19.77545,44.33961 -44.3396,44.33961 l -111.32078,0 C 174.77548,224.99998 155,205.22451 155,180.66037 l 0,-111.32079 c 0,-24.56413 19.77548,-44.3396 44.33962,-44.3396 z"
style="fill:url(#linearGradient3046);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38.28099823;marker-start:none"
inkscape:connector-curvature="0" />
<path
id="path5924"
d="M 312.05649,100.00562 C 263.5256,100.5308 250.26065,156.69674 207.1576,157.25527 188.52179,157.49067 172.62722,144.70086 155,129.55648 l 0,51.65227 c 0,24.24868 19.79685,43.79126 44.36106,43.79123 l 111.31957,0 c 24.5642,0 44.31937,-19.54253 44.31937,-43.79123 l 0,-70.25531 c -12.03236,-6.60669 -25.96585,-11.13588 -42.94351,-10.94782 z"
style="opacity:0.25;fill:#0000ff;fill-opacity:1;fill-rule:evenodd;stroke:none"
inkscape:connector-curvature="0" />
<rect
rx="17.843672"
ry="17.843672"
y="49.999981"
x="180"
height="150"
width="33"
id="rect5926"
style="fill:url(#linearGradient3048);fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
style="fill:none;stroke:#000080;stroke-width:12.68599987;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:20;stroke-opacity:0.50196078;stroke-dasharray:none;stroke-dashoffset:0;marker-start:none;display:inline"
d="m 199.46811,31.34322 111.19211,0 c 21.12816,0 37.9969,16.87873 37.9969,38.00595 l 0,111.32031 c 0,21.13499 -16.86549,37.98752 -37.9969,37.98752 l -111.32032,0 c -21.1315,0 -37.9969,-16.86042 -37.9969,-37.98752 l 0,-111.35844 c 0,-21.13196 16.99051,-37.96782 38.12511,-37.96782 z"
id="path41636"
sodipodi:nodetypes="ccccccccc"
inkscape:connector-curvature="0" />
</g>
<g
inkscape:label="Yellow"
id="layer4">
<path
id="path5936"
d="m 344.33962,119.99997 111.32077,0 c 24.56415,0 44.33961,19.77547 44.33961,44.33962 l 0,111.32078 c 0,24.56414 -19.77546,44.33961 -44.33961,44.33961 l -111.32077,0 C 319.77547,319.99998 300,300.22451 300,275.66037 l 0,-111.32078 c 0,-24.56415 19.77547,-44.33962 44.33962,-44.33962 z"
style="fill:url(#linearGradient3050);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38.28144073;marker-start:none;display:inline"
inkscape:connector-curvature="0" />
<path
id="path5938"
d="M 457.05649,195.00562 C 408.5256,195.53079 395.26065,251.69673 352.1576,252.25526 333.52179,252.49067 317.62722,239.70086 300,224.55647 l 0,51.65228 c 0,24.24868 19.79685,43.79126 44.36106,43.79123 l 111.31957,0 C 480.24484,319.99998 500,300.45745 500,276.20875 l 0,-70.25532 c -12.03236,-6.60669 -25.96584,-11.13587 -42.94351,-10.94781 z"
style="opacity:0.25;fill:#c0c000;fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline"
inkscape:connector-curvature="0" />
<rect
rx="17.843672"
ry="17.843672"
y="144.99998"
x="325"
height="150"
width="33"
id="rect5940"
style="fill:url(#linearGradient3052);fill-opacity:1;fill-rule:nonzero;stroke:none;display:inline" />
<path
sodipodi:nodetypes="ccccccccc"
id="path42512"
d="m 344.46811,126.34322 111.19211,0 c 21.12816,0 37.9969,16.87873 37.9969,38.00595 l 0,111.32031 c 0,21.13499 -16.86549,37.98752 -37.9969,37.98752 l -111.32032,0 c -21.1315,0 -37.9969,-16.86042 -37.9969,-37.98752 l 0,-111.35844 c 0,-21.13196 16.99051,-37.96782 38.12511,-37.96782 z"
style="fill:none;stroke:#808000;stroke-width:12.68599987;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:20;stroke-opacity:0.50196078;stroke-dasharray:none;stroke-dashoffset:0;marker-start:none;display:inline"
inkscape:connector-curvature="0" />
</g>
</g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB