From dff12e2ce5692a005ea400d1a69aec282fdad92a Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Thu, 21 Feb 2019 19:06:35 +0100 Subject: [PATCH] Manually optimize all SVG images I applied a series of manual optimizations, most notably: * Remove unused IDs. * Remove attributes with standard values, e.g. opacity="1" is the default anyway. * Remove attributes that don't have an effect, e.g. font styling where no fonts are used, or stroke attributes when there is no stroke anyway. * Replace millimeters with pixels. * I also tried to remove most translations. A lot of files had all their coordinates offset by -1032.362. I gave up for a few files. It might be worth looking into these later. * brackets-grey.svg not only had a translation applied, but a non-standard viewBox as well. I wrote a tiny script to re-calculate all the numbers in this file. As a result it's much more crisp now. Note that some of these optimizations might alter the appearence of the image. I mean, they shouldn't, but better check each file manually before merging this patch. I did not touched the two files "cat-grey.svg" (I assume this is a placeholder) as well as "editing icons.svg" (seems to be a temporary file that should be removed). Change-Id: Ie2dadef9d5979b563aa0ed0f5d8a69c534b76a4e --- resources/images/arrow-down-grey.svg | 2 +- resources/images/brackets-grey.svg | 12 ++++++------ resources/images/clock-grey.svg | 6 ++---- resources/images/gear-grey.svg | 4 +--- resources/images/gear-large-grey.svg | 2 +- resources/images/languages-grey.svg | 6 +++--- resources/images/magnify-ltr.svg | 6 +++--- resources/images/magnify-rtl.svg | 6 +++--- resources/images/menu-large-grey.svg | 6 +++--- resources/images/page-grey.svg | 4 +--- resources/images/pencil-grey.svg | 6 +++--- resources/images/plus-grey.svg | 6 +++--- resources/images/puzzle-grey.svg | 10 +++++----- resources/images/search-ltr.svg | 6 +++--- resources/images/search-rtl.svg | 6 +++--- resources/images/star-filled.svg | 4 ++-- resources/images/star.svg | 4 ++-- resources/images/talk-grey.svg | 10 +++++----- resources/images/user-grey.svg | 6 +++--- resources/images/user-large-grey.svg | 4 ++-- 20 files changed, 55 insertions(+), 61 deletions(-) diff --git a/resources/images/arrow-down-grey.svg b/resources/images/arrow-down-grey.svg index a44b024..13905d7 100644 --- a/resources/images/arrow-down-grey.svg +++ b/resources/images/arrow-down-grey.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/images/brackets-grey.svg b/resources/images/brackets-grey.svg index e0af334..9141775 100644 --- a/resources/images/brackets-grey.svg +++ b/resources/images/brackets-grey.svg @@ -1,9 +1,9 @@ - - - - - - + + + + + + diff --git a/resources/images/clock-grey.svg b/resources/images/clock-grey.svg index d93dbc5..6d66f59 100644 --- a/resources/images/clock-grey.svg +++ b/resources/images/clock-grey.svg @@ -1,7 +1,5 @@ - - - - + + diff --git a/resources/images/gear-grey.svg b/resources/images/gear-grey.svg index 4db2d2d..a92a720 100644 --- a/resources/images/gear-grey.svg +++ b/resources/images/gear-grey.svg @@ -1,6 +1,4 @@ - - - + diff --git a/resources/images/gear-large-grey.svg b/resources/images/gear-large-grey.svg index b712be6..b187208 100644 --- a/resources/images/gear-large-grey.svg +++ b/resources/images/gear-large-grey.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/images/languages-grey.svg b/resources/images/languages-grey.svg index 3f7cf4a..0cabc41 100644 --- a/resources/images/languages-grey.svg +++ b/resources/images/languages-grey.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/resources/images/magnify-ltr.svg b/resources/images/magnify-ltr.svg index 0173a53..ea373b3 100644 --- a/resources/images/magnify-ltr.svg +++ b/resources/images/magnify-ltr.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/resources/images/magnify-rtl.svg b/resources/images/magnify-rtl.svg index 9b58195..6b7648f 100644 --- a/resources/images/magnify-rtl.svg +++ b/resources/images/magnify-rtl.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/resources/images/menu-large-grey.svg b/resources/images/menu-large-grey.svg index f37bb15..4c5da0d 100644 --- a/resources/images/menu-large-grey.svg +++ b/resources/images/menu-large-grey.svg @@ -1,6 +1,6 @@ - - - + + + diff --git a/resources/images/page-grey.svg b/resources/images/page-grey.svg index a3f139d..f6e6b8f 100644 --- a/resources/images/page-grey.svg +++ b/resources/images/page-grey.svg @@ -1,6 +1,4 @@ - - - + diff --git a/resources/images/pencil-grey.svg b/resources/images/pencil-grey.svg index af2b6ef..10fe146 100644 --- a/resources/images/pencil-grey.svg +++ b/resources/images/pencil-grey.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/resources/images/plus-grey.svg b/resources/images/plus-grey.svg index a3a3800..8fc94d3 100644 --- a/resources/images/plus-grey.svg +++ b/resources/images/plus-grey.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/resources/images/puzzle-grey.svg b/resources/images/puzzle-grey.svg index e4dc0b4..64e8d83 100644 --- a/resources/images/puzzle-grey.svg +++ b/resources/images/puzzle-grey.svg @@ -1,9 +1,9 @@ - - - - - + + + + + diff --git a/resources/images/search-ltr.svg b/resources/images/search-ltr.svg index 2a560c3..e42e95c 100644 --- a/resources/images/search-ltr.svg +++ b/resources/images/search-ltr.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/resources/images/search-rtl.svg b/resources/images/search-rtl.svg index f5c5bd3..c62ad2a 100644 --- a/resources/images/search-rtl.svg +++ b/resources/images/search-rtl.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/resources/images/star-filled.svg b/resources/images/star-filled.svg index d237685..ca8bc70 100644 --- a/resources/images/star-filled.svg +++ b/resources/images/star-filled.svg @@ -1,4 +1,4 @@ - - + + diff --git a/resources/images/star.svg b/resources/images/star.svg index 292f555..f86f468 100644 --- a/resources/images/star.svg +++ b/resources/images/star.svg @@ -1,6 +1,6 @@ - + - + diff --git a/resources/images/talk-grey.svg b/resources/images/talk-grey.svg index e395801..b528944 100644 --- a/resources/images/talk-grey.svg +++ b/resources/images/talk-grey.svg @@ -1,9 +1,9 @@ - - - - - + + + + + diff --git a/resources/images/user-grey.svg b/resources/images/user-grey.svg index c6be181..d652c6f 100644 --- a/resources/images/user-grey.svg +++ b/resources/images/user-grey.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/resources/images/user-large-grey.svg b/resources/images/user-large-grey.svg index c3b1acf..1ad35b3 100644 --- a/resources/images/user-large-grey.svg +++ b/resources/images/user-large-grey.svg @@ -1,5 +1,5 @@ - - + +