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,23 +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="20"
|
||||
height="20"
|
||||
viewBox="0 0 20 20"
|
||||
id="Layer_1"
|
||||
xml:space="preserve"><metadata
|
||||
id="metadata7"><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="defs5" />
|
||||
<path
|
||||
d="m 0.00154839,2.2750125 0,12.9448005 8.40487521,0 c 0.5347618,1.623728 -0.9751922,1.786266 -1.9024949,2.505175 0,0 2.2928426,-0.02376 3.4393049,-0.02376 1.1439664,1.1e-5 3.4318164,0.02376 3.4318164,0.02376 -0.904899,-0.688379 -2.355198,-0.868416 -1.902494,-2.505176 l 8.527444,0 0,-12.9448005 -20,0 z m 6.80975041,1.840487 0.7974762,0 3.312991,8.4662625 -1.0429593,0 -1.0429593,-2.6380325 -3.37419,0 -1.0429597,2.6380325 -0.9815887,0 z m 0.368053,1.104296 c -0.084472,0.368776 -0.2106611,0.785288 -0.368053,1.227003 l -0.9815888,2.576679 2.6994552,0 -0.9815886,-2.576679 C 7.4200081,6.1164645 7.3138159,5.6999535 7.1793518,5.2197955 z m 7.1166042,0.981606 c 0.752827,1.7e-5 1.295339,0.156702 1.656496,0.490794 0.364777,0.334195 0.552165,0.857606 0.552165,1.595091 l 0,4.2944765 -0.674907,0 -0.184112,-0.858882 -0.06206,0 c -0.314956,0.395636 -0.605261,0.655428 -0.920218,0.797546 -0.311164,0.138256 -0.758344,0.18394 -1.2269,0.18394 -0.62612,0 -1.115191,-0.168253 -1.472383,-0.490795 -0.353399,-0.322645 -0.490794,-0.754292 -0.490794,-1.349692 0,-1.2752565 1.027789,-1.9630755 3.067508,-2.0245495 l 1.042787,0 0,-0.429441 c 0,-0.495483 -0.09137,-0.869966 -0.306682,-1.104296 -0.21135,-0.238157 -0.574403,-0.306733 -1.04296,-0.30675 -0.526134,1.7e-5 -1.114673,0.106882 -1.779064,0.429458 l -0.306856,-0.674855 c 0.311163,-0.169116 0.674217,-0.333403 1.042959,-0.429442 0.372708,-0.09602 0.731796,-0.122741 1.10433,-0.122741 z m 0.306854,3.312888 c -0.760584,0.02689 -1.318438,0.156874 -1.656495,0.368087 -0.334092,0.2074355 -0.490795,0.5398905 -0.490795,0.9816055 0,0.345711 0.09999,0.617001 0.306682,0.797545 0.211351,0.180613 0.543891,0.245397 0.920218,0.245397 0.595435,0 1.011757,-0.164287 1.349814,-0.490794 0.341849,-0.32649 0.552165,-0.761998 0.552165,-1.349693 l 0,-0.5521475 z"
|
||||
id="rect4908-5-1-5-9"
|
||||
style="fill:#434343;fill-opacity:1;stroke:none" /></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M.002 2.275v12.945h8.405c.535 1.624-.975 1.786-1.902 2.505 0 0 2.293-.024 3.439-.024 1.144 0 3.432.024 3.432.024-.905-.688-2.355-.868-1.902-2.505h8.527v-12.945h-20zm6.81 1.84h.797l3.313 8.466h-1.043l-1.043-2.638h-3.374l-1.043 2.638h-.982zm.368 1.104c-.084.369-.211.785-.368 1.227l-.982 2.577h2.699l-.982-2.577c-.128-.33-.234-.747-.368-1.227zm7.117.982c.753 0 1.295.157 1.656.491.365.334.552.858.552 1.595v4.294h-.675l-.184-.859h-.062c-.315.396-.605.655-.92.798-.311.138-.758.184-1.227.184-.626 0-1.115-.168-1.472-.491-.353-.323-.491-.754-.491-1.35 0-1.275 1.028-1.963 3.068-2.025h1.043v-.429c0-.495-.091-.87-.307-1.104-.211-.238-.574-.307-1.043-.307-.526 0-1.115.107-1.779.429l-.307-.675c.311-.169.674-.333 1.043-.429.373-.096.732-.123 1.104-.123zm.307 3.313c-.761.027-1.318.157-1.656.368-.334.207-.491.54-.491.982 0 .346.1.617.307.798.211.181.544.245.92.245.595 0 1.012-.164 1.35-.491.342-.326.552-.762.552-1.35v-.552z" fill="#434343"/></svg>
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue
Block a user