Passed with svgo 0.4.2 <https://github.com/svg/svgo>, then prepended '<?xml version="1.0" encoding="UTF-8"?>' prolog to each file since svgo sees it fit to remove it and that breaks file type detection. svgo truncated all numerical values to a maximum of 3 decimal places of precision. Applied some additional optimizations by hand (with a text editor or in Inkscape). Did not touch upstream-managed SVG files, will submit separate patches for them. File size changes: * cog-sprite.svg: 2,520 → 1,253 bytes – 50.3% smaller * cog.svg: 17,961 → 1,154 bytes – 93.6% smaller * display.svg: 2,591 → 1,053 bytes – 59.4% smaller * help.svg: 1,790 → 674 bytes – 62.3% smaller * input.svg: 5,515 → 2,092 bytes – 62.1% smaller * remove-input.svg: 5,956 → 2,208 bytes – 62.9% smaller Total: 36,333 → 8,434 bytes – 76.8% smaller Details: * cog-sprite.svg: * Use <defs> and <use> instead of duplicating the path data. * cog.svg: * Vacuumed defs with Inkscape, there were weird leftovers there. * input.svg: * Simplified the shapes. * remove-input.svg: * As above. Reused the same path data with a transform to improve compression when embedded. Bug: 56292 Change-Id: Iad1771829ba2711e4827befc1c73e34453734640
1 line
1.2 KiB
XML
1 line
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="32"><defs><path d="M13.582 6.632h-1.064c-.133-.538-.354-1.065-.645-1.552l.75-.75c.164-.164.164-.429 0-.593l-1.359-1.36c-.164-.164-.43-.164-.594 0l-.75.75c-.49-.294-1.012-.512-1.551-.645v-1.064c0-.231-.187-.418-.419-.418h-1.918c-.231 0-.418.187-.418.418v1.063c-.541.135-1.062.352-1.552.646l-.75-.75c-.164-.164-.429-.164-.593 0l-1.36 1.36c-.164.164-.164.429 0 .593l.75.75c-.292.488-.494 1.015-.627 1.551h-1.064c-.231 0-.418.187-.418.419v1.918c0 .231.187.418.418.418h1.046c.134.542.351 1.062.645 1.551l-.75.75c-.164.164-.164.429 0 .593l1.36 1.36c.164.164.429.164.593 0l.75-.75c.491.296 1.01.493 1.551.627v1.063c.001.233.188.42.419.42h1.918c.231 0 .419-.187.419-.418v-1.063c.542-.134 1.061-.333 1.551-.627l.75.75c.164.164.43.164.594 0l1.359-1.36c.164-.164.164-.429 0-.593l-.75-.75c.295-.489.51-1.013.645-1.551h1.064c.23-.002.418-.189.418-.42v-1.918c0-.232-.188-.418-.418-.418zm-6.582 4.012c-1.461 0-2.645-1.184-2.645-2.644s1.184-2.644 2.645-2.644 2.645 1.184 2.645 2.644-1.184 2.644-2.645 2.644z" id="a"/></defs><use xlink:href="#a" fill="#808080"/><use xlink:href="#a" transform="translate(0 16)" fill="#555"/></svg> |