resources/images: Optimize all SVGs (partially by hand)
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
This commit is contained in:
@@ -1,3 +1 @@
|
||||
<?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>
|
||||
<?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>
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user