diff options
author | skjnldsv <fremulon@protonmail.com> | 2016-09-27 09:36:38 +0300 |
---|---|---|
committer | skjnldsv <fremulon@protonmail.com> | 2016-09-27 21:56:26 +0300 |
commit | 71830b285ca15f6841e6c71c31404c2f64866935 (patch) | |
tree | 3eba3cd255d00c93653a7f957eb8812ed00481a4 /tests/data | |
parent | 810f72df4644793673026c7490b5b2fe794ed05f (diff) |
Svgo optimization
Signed-off-by: John Molakvoæ <fremulon@protonmail.com>
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/desktopapp.svg | 6 | ||||
-rw-r--r-- | tests/data/testimagelarge.svg | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/tests/data/desktopapp.svg b/tests/data/desktopapp.svg index d63cfef0848..eecce50293a 100644 --- a/tests/data/desktopapp.svg +++ b/tests/data/desktopapp.svg @@ -1,5 +1 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="60" width="170" version="1.1" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#" enable-background="new 0 0 792 612" viewBox="0 0 1346.4 475.2" xmlns:dc="http://purl.org/dc/elements/1.1/"> -<rect rx="50" ry="50" height="475.2" width="1346.4" y="-3.5527e-15" x="-2.8405e-15"/><path d="m150.48 126.72c-11.88 0-23.76 11.88-23.76 23.76v166.32l-47.52 23.76v11.88s0 11.88 11.88 11.88h356.4c11.88 0 11.88-11.88 11.88-11.88v-11.88l-47.52-23.76v-166.32c0-11.88-11.88-23.76-23.76-23.76zm0 23.667h237.6v142.65h-237.6z" fill="#fff"/><text style="word-spacing:0px;letter-spacing:0px" xml:space="preserve" font-size="316.8px" y="239.58" x="451.44" font-family="Sans" line-height="125%" fill="#ffffff"><tspan font-size="126.72px" font-weight="600" y="239.58" x="451.44" font-family="FreeSans" fill="#ffffff">Desktop app</tspan></text> -<text style="word-spacing:0px;letter-spacing:0px" xml:space="preserve" font-size="316.8px" y="342.54001" x="493.01996" font-family="Sans" line-height="125%" fill="#ffffff"><tspan y="342.54001" x="493.01996" font-size="71.28px" font-family="FreeSans" fill="#ffffff">Windows, OS X, Linux</tspan></text> -</svg> +<svg xmlns="http://www.w3.org/2000/svg" height="60" width="170" viewBox="0 0 1346.4 475.2"><rect rx="50" ry="50" height="475.2" width="1346.4"/><path d="M150.48 126.72c-11.88 0-23.76 11.88-23.76 23.76V316.8L79.2 340.56v11.88s0 11.88 11.88 11.88h356.4c11.88 0 11.88-11.88 11.88-11.88v-11.88l-47.52-23.76V150.48c0-11.88-11.88-23.76-23.76-23.76zm0 23.667h237.6v142.65h-237.6z" fill="#fff"/><text font-size="316.8" y="239.58" x="451.44" font-family="Sans" fill="#fff" word-spacing="0" letter-spacing="0"><tspan font-size="126.72" font-weight="600" y="239.58" x="451.44" font-family="FreeSans">Desktop app</tspan></text><text font-size="316.8" y="342.54" x="493.02" font-family="Sans" fill="#fff" word-spacing="0" letter-spacing="0"><tspan y="342.54" x="493.02" font-size="71.28" font-family="FreeSans">Windows, OS X, Linux</tspan></text></svg>
\ No newline at end of file diff --git a/tests/data/testimagelarge.svg b/tests/data/testimagelarge.svg index 2d505c4db0f..d158db89109 100644 --- a/tests/data/testimagelarge.svg +++ b/tests/data/testimagelarge.svg @@ -1,2 +1 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 600 600" xml:space="preserve" height="2e3" width="3e3" version="1.0" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 3000 2000"><g transform="matrix(5,0,0,5,0,-500)"><circle cy="300" cx="300" r="300" fill="#c31927"/><path fill="#fff" d="m300 550c-66.8 0-129.6-26-176.8-73.2s-73.2-110-73.2-176.8 26-129.6 73.2-176.8 110-73.2 176.8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2 0.6 2.5 1 4 0.5 1.5 0.9 3.1 1.4 4.7s1 3.6 1.8 5.9v27.2c0 2.8-0.6 5.6-1.8 8.4s-2.6 5.5-4.4 8c-1.8 2.6-3.7 4.9-6 7.1-2.2 2.2-4.3 4.1-6.1 5.7-0.2 0.2-0.8 0.6-1.6 1.2s-1.8 1.2-2.8 1.7c-1 0.6-2 1.2-3 1.7l-1.8 1.2-0.7 0.7c0.7 0.5 2.3 1.2 4.9 2.1s4.2 1.6 4.9 2.1c4.9 2.1 8.9 5.1 12.1 9.1s5.7 8.4 7.5 13.2c1.9 4.9 3.2 9.9 3.8 15.2 0.7 5.2 1 10.2 1 14.8 0 12.3-2.5 24.2-7.5 35.5-5 11.4-13.1 20.2-24.3 26.5-1.9 1.2-3.9 2.1-6.1 2.8s-4.3 1.6-6.1 2.8c-1.2 0.5-3.6 1-7.4 1.7-3.7 0.7-6.2 1.3-7.4 1.7-0.5 0-1.5 0.1-3 0.3s-2.4 0.3-2.6 0.3h-30.8c-0.2 0-1.1-0.1-2.6-0.3s-2.5-0.3-3-0.3c-0.7-0.2-1.8-0.5-3.3-0.7s-3.2-0.5-4.9-0.9c-1.8-0.3-3.4-0.7-4.9-1-1.3-0.7-2.4-1-3.1-1.2z"/></g></svg> +<svg xmlns="http://www.w3.org/2000/svg" height="2000" width="3000" version="1" viewBox="0 0 3000 2000"><g transform="matrix(5 0 0 5 0 -500)"><circle cy="300" cx="300" r="300" fill="#c31927"/><path fill="#fff" d="M300 550c-66.8 0-129.6-26-176.8-73.2S50 366.8 50 300s26-129.6 73.2-176.8S233.2 50 300 50s129.6 26 176.8 73.2S550 233.2 550 300s-26 129.6-73.2 176.8S366.8 550 300 550z"/><path d="M345.7 64.3L300 110l-45.7-45.7c14.9-2.9 30.2-4.3 45.7-4.3s30.8 1.5 45.7 4.3zM345.7 535.7c-14.9 2.9-30.2 4.3-45.7 4.3s-30.8-1.5-45.7-4.3L300 490l45.7 45.7zM276.8 389.1c0-3.4 1.1-5.9 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