From c9cd0fc40118854e98c98a9bb90db36f5532cdb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 18 Feb 2014 15:12:42 +0100 Subject: [PATCH] resources/images: Optimize all SVGs (partially by hand) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Passed with svgo 0.4.2 , then prepended '' 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 and 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 --- resources/images/cog-sprite.svg | 4 +- resources/images/cog.svg | 386 +----------------------------- resources/images/display.svg | 24 +- resources/images/help.svg | 25 +- resources/images/input.svg | 24 +- resources/images/remove-input.svg | 31 +-- 6 files changed, 6 insertions(+), 488 deletions(-) diff --git a/resources/images/cog-sprite.svg b/resources/images/cog-sprite.svg index 242be14e..76becd44 100644 --- a/resources/images/cog-sprite.svg +++ b/resources/images/cog-sprite.svg @@ -1,3 +1 @@ - - - \ No newline at end of file + \ No newline at end of file diff --git a/resources/images/cog.svg b/resources/images/cog.svg index 93791b19..edfbbf3d 100644 --- a/resources/images/cog.svg +++ b/resources/images/cog.svg @@ -1,385 +1 @@ - - - -image/svg+xml - \ No newline at end of file + \ No newline at end of file diff --git a/resources/images/display.svg b/resources/images/display.svg index fadd8bbd..98f93f2c 100644 --- a/resources/images/display.svg +++ b/resources/images/display.svg @@ -1,23 +1 @@ - - - -image/svg+xml - \ No newline at end of file + \ No newline at end of file diff --git a/resources/images/help.svg b/resources/images/help.svg index fd13f8d3..21bf00b6 100644 --- a/resources/images/help.svg +++ b/resources/images/help.svg @@ -1,24 +1 @@ - - - -image/svg+xml - - \ No newline at end of file + \ No newline at end of file diff --git a/resources/images/input.svg b/resources/images/input.svg index 2570d80d..5b11b20e 100644 --- a/resources/images/input.svg +++ b/resources/images/input.svg @@ -1,23 +1 @@ - - - -image/svg+xml - \ No newline at end of file + \ No newline at end of file diff --git a/resources/images/remove-input.svg b/resources/images/remove-input.svg index 72978d26..d44b5c92 100644 --- a/resources/images/remove-input.svg +++ b/resources/images/remove-input.svg @@ -1,30 +1 @@ - - - -image/svg+xml - \ No newline at end of file + \ No newline at end of file