Optimize Cog sprite SVG

Reducing the size of the SVG by:
- Simplifying the shape (two anchor points removed)
- Removal of XML attributes not needed (namespace declarations not used, attributes with the default value, etc.)

Change-Id: I3dc810313d1bd9ebd5933a92ee90210cbf6f4fb4
This commit is contained in:
Pau Giner
2013-11-08 08:52:55 +01:00
parent 9dd4072d3d
commit 7e50cae662

View File

@@ -1,29 +1,3 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.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"
version="1.1"
width="14"
height="32"
viewBox="0 0 14 32"
id="Layer_1"
xml:space="preserve"><metadata
id="metadata8"><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:Work></rdf:RDF></metadata><defs
id="defs6" />
<path
d="m 6.032,17 c -0.231,0 -0.418,0.187 -0.418,0.418 v 1.064 c -0.541,0.134 -1.062,0.35 -1.551,0.645 l -0.75,-0.75 c -0.164,-0.164 -0.429,-0.164 -0.593,0 l -1.36,1.36 c -0.164,0.164 -0.164,0.429 0,0.593 l 0.75,0.75 C 1.818,21.568 1.615,22.095 1.483,22.631 H 0.418 C 0.187,22.631 0,22.818 0,23.05 v 1.918 c 0,0.231 0.187,0.419 0.418,0.419 h 1.046 c 0.134,0.541 0.351,1.061 0.645,1.551 l -0.75,0.75 c -0.164,0.164 -0.164,0.429 0,0.593 l 1.36,1.36 c 0.164,0.164 0.429,0.164 0.593,0 l 0.75,-0.75 c 0.491,0.297 1.01,0.493 1.551,0.627 v 1.064 C 5.614,30.813 5.801,31 6.032,31 H 7.95 c 0.231,0 0.419,-0.187 0.419,-0.418 V 29.518 C 8.911,29.385 9.43,29.185 9.92,28.891 l 0.75,0.75 c 0.164,0.164 0.429,0.164 0.593,0 l 1.36,-1.36 c 0.164,-0.164 0.164,-0.429 0,-0.593 l -0.75,-0.75 c 0.295,-0.488 0.51,-1.014 0.645,-1.551 h 1.064 C 13.813,25.387 14,25.199 14,24.968 V 23.05 c 0,-0.231 -0.187,-0.419 -0.418,-0.419 H 12.518 C 12.385,22.094 12.164,21.567 11.873,21.08 l 0.75,-0.75 c 0.164,-0.164 0.164,-0.429 0,-0.593 l -1.36,-1.36 c -0.164,-0.164 -0.429,-0.164 -0.593,0 l -0.75,0.75 C 9.43,18.833 8.908,18.615 8.369,18.482 V 17.418 C 8.369,17.187 8.182,17 7.95,17 H 6.032 z m 0.889,4.358 c 0.678,-0.018 1.37,0.212 1.901,0.715 1.062,1.007 1.111,2.687 0.104,3.749 -1.005,1.059 -2.686,1.105 -3.749,0.104 -1.062,-1.007 -1.112,-2.687 -0.105,-3.749 0.505,-0.531 1.172,-0.8 1.849,-0.819 z"
id="rect3381-0"
style="fill:#555555" />
<path
d="M 6.032,1 C 5.801,1 5.614,1.187 5.614,1.418 V 2.481 C 5.073,2.616 4.552,2.833 4.062,3.127 L 3.312,2.377 C 3.148,2.213 2.883,2.213 2.719,2.377 l -1.36,1.36 c -0.164,0.164 -0.164,0.429 0,0.593 l 0.75,0.75 C 1.817,5.568 1.615,6.095 1.482,6.631 H 0.418 C 0.187,6.631 0,6.818 0,7.05 v 1.918 c 0,0.231 0.187,0.418 0.418,0.418 h 1.046 c 0.134,0.542 0.351,1.062 0.645,1.551 l -0.75,0.75 c -0.164,0.164 -0.164,0.429 0,0.593 l 1.36,1.36 c 0.164,0.164 0.429,0.164 0.593,0 l 0.75,-0.75 c 0.491,0.296 1.01,0.493 1.551,0.627 V 14.58 C 5.614,14.813 5.801,15 6.032,15 H 7.95 c 0.231,0 0.419,-0.187 0.419,-0.418 V 13.519 C 8.911,13.385 9.43,13.186 9.92,12.892 l 0.75,0.75 c 0.164,0.164 0.429,0.164 0.593,0 l 1.36,-1.36 c 0.164,-0.164 0.164,-0.429 0,-0.593 l -0.75,-0.75 c 0.295,-0.489 0.51,-1.013 0.645,-1.551 h 1.064 C 13.813,9.386 14,9.199 14,8.968 V 7.05 C 14,6.818 13.813,6.632 13.582,6.632 H 12.518 C 12.385,6.094 12.164,5.567 11.873,5.08 l 0.75,-0.75 c 0.164,-0.164 0.164,-0.429 0,-0.593 l -1.36,-1.36 c -0.164,-0.164 -0.429,-0.164 -0.593,0 L 9.92,3.127 C 9.43,2.833 8.908,2.615 8.369,2.482 V 1.418 C 8.369,1.187 8.182,1 7.95,1 H 6.032 z M 6.921,5.358 C 7.6,5.341 8.291,5.57 8.822,6.073 9.884,7.081 9.934,8.76 8.927,9.822 7.922,10.882 6.241,10.927 5.178,9.927 4.116,8.919 4.066,7.24 5.073,6.178 5.577,5.647 6.244,5.376 6.921,5.358 z"
id="path3059"
style="fill:#808080" />
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="14px" height="32px"><path fill="#808080" d="M13.582,6.632h-1.064c-0.133-0.538-0.354-1.065-0.645-1.552l0.75-0.75c0.164-0.164,0.164-0.429,0-0.593l-1.359-1.36c-0.164-0.164-0.43-0.164-0.594,0l-0.75,0.75C9.43,2.833,8.908,2.615,8.369,2.482V1.418C8.369,1.187,8.182,1,7.95,1H6.032C5.801,1,5.614,1.187,5.614,1.418v1.063C5.073,2.616,4.552,2.833,4.062,3.127l-0.75-0.75c-0.164-0.164-0.429-0.164-0.593,0l-1.36,1.36c-0.164,0.164-0.164,0.429,0,0.593l0.75,0.75C1.817,5.568,1.615,6.095,1.482,6.631H0.418C0.187,6.631,0,6.818,0,7.05v1.918c0,0.231,0.187,0.418,0.418,0.418h1.046c0.134,0.542,0.351,1.062,0.645,1.551l-0.75,0.75c-0.164,0.164-0.164,0.429,0,0.593l1.36,1.36c0.164,0.164,0.429,0.164,0.593,0l0.75-0.75c0.491,0.296,1.01,0.493,1.551,0.627v1.063C5.614,14.813,5.801,15,6.032,15H7.95c0.231,0,0.419-0.187,0.419-0.418v-1.063c0.542-0.134,1.061-0.333,1.551-0.627l0.75,0.75c0.164,0.164,0.43,0.164,0.594,0l1.359-1.36c0.164-0.164,0.164-0.429,0-0.593l-0.75-0.75c0.295-0.489,0.51-1.013,0.645-1.551h1.064C13.812,9.386,14,9.199,14,8.968V7.05C14,6.818,13.812,6.632,13.582,6.632z M7,10.644C5.539,10.644,4.355,9.46,4.355,8S5.539,5.356,7,5.356S9.645,6.54,9.645,8S8.461,10.644,7,10.644z"/><path fill="#555555" d="M13.582,22.632h-1.064c-0.133-0.538-0.354-1.065-0.645-1.552l0.75-0.75c0.164-0.164,0.164-0.43,0-0.594l-1.359-1.359c-0.164-0.164-0.43-0.164-0.594,0l-0.75,0.75c-0.49-0.294-1.012-0.512-1.551-0.645v-1.064C8.369,17.188,8.182,17,7.95,17H6.032c-0.231,0-0.419,0.188-0.419,0.418v1.062c-0.54,0.136-1.062,0.353-1.551,0.646l-0.75-0.75c-0.164-0.164-0.43-0.164-0.594,0l-1.359,1.359c-0.164,0.164-0.164,0.43,0,0.594l0.75,0.75c-0.293,0.488-0.494,1.015-0.627,1.551H0.418C0.188,22.631,0,22.818,0,23.05v1.918c0,0.231,0.188,0.418,0.418,0.418h1.046c0.134,0.542,0.351,1.062,0.646,1.552l-0.75,0.75c-0.164,0.164-0.164,0.429,0,0.593l1.359,1.36c0.164,0.164,0.43,0.164,0.594,0l0.75-0.75c0.49,0.295,1.01,0.492,1.551,0.627v1.062c0,0.232,0.188,0.42,0.419,0.42H7.95c0.231,0,0.419-0.188,0.419-0.418V29.52c0.542-0.135,1.061-0.334,1.551-0.627l0.75,0.75c0.164,0.164,0.43,0.164,0.594,0l1.359-1.36c0.164-0.164,0.164-0.429,0-0.593l-0.75-0.75c0.295-0.489,0.51-1.014,0.645-1.551h1.064C13.812,25.386,14,25.199,14,24.968V23.05C14,22.818,13.812,22.632,13.582,22.632z M7,26.645c-1.461,0-2.645-1.184-2.645-2.645S5.539,21.355,7,21.355S9.645,22.539,9.645,24S8.461,26.645,7,26.645z"/></svg>

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB