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,24 +1 @@
|
||||
<?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="18"
|
||||
height="18"
|
||||
viewBox="0 0 18 18.000001"
|
||||
id="Layer_1"
|
||||
xml:space="preserve"><metadata
|
||||
id="metadata9"><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="defs7" />
|
||||
<path
|
||||
d="m 9.0000003,1.4996437 c -4.1414191,0 -7.5000004,3.357869 -7.5000004,7.5000014 0,4.1421309 3.3585813,7.5007119 7.5000004,7.5007119 C 13.142844,16.500357 16.5,13.141776 16.5,8.9996451 16.5,4.8575127 13.143556,1.4996437 9.0000003,1.4996437 z m -0.00142,11.9434423 c -0.6133062,0 -1.067053,-0.490074 -1.067053,-1.079874 0,-0.614018 0.4537468,-1.092697 1.067053,-1.092697 0.5897995,0 1.0684787,0.478679 1.0684787,1.092697 0,0.589087 -0.4786792,1.079874 -1.0684787,1.079874 z M 10.520808,8.8044702 C 10.005803,9.2090668 9.8084893,9.4676384 9.8084893,10.043191 V 10.39935 H 8.2378195 V 9.9698226 c 0,-1.0805866 0.319831,-1.521513 0.8220158,-1.914713 0.5036093,-0.3931991 0.8113306,-0.6019091 0.8113306,-1.1660648 0,-0.4786781 -0.2949,-0.7486467 -0.8832748,-0.7486467 -0.5036094,0 -0.9459591,0.1346281 -1.4118153,0.4544592 L 6.8274291,5.3076978 C 7.4407353,4.8774575 8.2022036,4.5711607 9.2079969,4.5711607 c 1.3619531,0 2.5045121,0.7486465 2.5045121,2.1839682 -7.12e-4,1.0186149 -0.56558,1.5585525 -1.191709,2.0493413 z"
|
||||
id="path3"
|
||||
style="fill:#575757" />
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18.000001"><path d="M9 1.5c-4.141 0-7.5 3.358-7.5 7.5 0 4.142 3.359 7.501 7.5 7.501 4.143 0 7.5-3.359 7.5-7.501s-3.356-7.5-7.5-7.5zm-.001 11.943c-.613 0-1.067-.49-1.067-1.08 0-.614.454-1.093 1.067-1.093.59 0 1.068.479 1.068 1.093 0 .589-.479 1.08-1.068 1.08zm1.522-4.639c-.515.405-.712.663-.712 1.239v.356h-1.571v-.43c0-1.081.32-1.522.822-1.915.504-.393.811-.602.811-1.166 0-.479-.295-.749-.883-.749-.504 0-.946.135-1.412.454l-.749-1.287c.613-.43 1.375-.737 2.381-.737 1.362 0 2.505.749 2.505 2.184-.001 1.019-.566 1.559-1.192 2.049z" fill="#575757"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 674 B |
Reference in New Issue
Block a user