diff --git a/CHANGELOG.md b/CHANGELOG.md index d52a7087..3a261cea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] + +## [0.8.1] - 2017-02-01 ### Added - `--group-by-style` can group by `transform` now. - `--remove-needless-attributes` and `--remove-default-attributes` @@ -196,7 +198,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - First public release with Perl backend and Qt GUI. -[Unreleased]: https://github.com/RazrFalcon/svgcleaner/compare/v0.8.0...HEAD +[Unreleased]: https://github.com/RazrFalcon/svgcleaner/compare/v0.8.1...HEAD +[0.8.1]: https://github.com/RazrFalcon/svgcleaner/compare/v0.8.0...v0.8.1 [0.8.0]: https://github.com/RazrFalcon/svgcleaner/compare/v0.7.1...v0.8.0 [0.7.1]: https://github.com/RazrFalcon/svgcleaner/compare/v0.7.0...v0.7.1 [0.7.0]: https://github.com/RazrFalcon/svgcleaner/compare/v0.6.91...v0.7.0 diff --git a/Cargo.toml b/Cargo.toml index 0bd61f92..71ef90ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "svgcleaner" -version = "0.8.0" +version = "0.8.1" authors = ["Evgeniy Reizner "] keywords = ["svg", "cleaner", "optimizer"] license = "GPL-2.0" @@ -15,11 +15,11 @@ travis-ci = { repository = "https://github.com/RazrFalcon/svgcleaner" } [dependencies.svgdom] # latest -git = "https://github.com/RazrFalcon/libsvgdom.git" +# git = "https://github.com/RazrFalcon/libsvgdom.git" # local copy # path = "../svgdom" # from crates -# version = "=0.3.0" +version = "=0.3.1" [dependencies.clap] version = "=2.20.0" @@ -32,9 +32,9 @@ cli-parsing = ["clap"] # makes it 5-10% faster, but very slow to compile # use only for main releases -# [profile.release] -# opt-level = 3 -# lto = true +[profile.release] +opt-level = 3 +lto = true [lib] name = "libsvgcleaner" diff --git a/README.md b/README.md index e484ff7a..b6c53b11 100644 --- a/README.md +++ b/README.md @@ -67,13 +67,13 @@ All stats was collected using the latest release version. *Less is better.* -![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.0/docs/images/correctness_chart_W3C_SVG_11_TestSuite.svg) +![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.1/docs/images/correctness_chart_W3C_SVG_11_TestSuite.svg) \* Most of the errors are due to incorrect `font-face` processing. Not font-based errors: - `svgo`: 100 - `scour`: 78 -![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.0/docs/images/correctness_chart_oxygen.svg) +![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.1/docs/images/correctness_chart_oxygen.svg) \* Errors produced by the numeric rounding are ignored. @@ -81,19 +81,19 @@ All stats was collected using the latest release version. *More is better.* -![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.0/docs/images/ratio_chart_W3C_SVG_11_TestSuite.svg) +![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.1/docs/images/ratio_chart_W3C_SVG_11_TestSuite.svg) \* Note that `svgo` and `scour` breaks most of the files. -![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.0/docs/images/ratio_chart_oxygen.svg) +![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.1/docs/images/ratio_chart_oxygen.svg) ### Cleaning time *Less is better.* -![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.0/docs/images/performance_chart_W3C_SVG_11_TestSuite.svg) +![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.1/docs/images/performance_chart_W3C_SVG_11_TestSuite.svg) -![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.0/docs/images/performance_chart_oxygen.svg) +![Alt text](https://cdn.rawgit.com/RazrFalcon/svgcleaner/v0.8.1/docs/images/performance_chart_oxygen.svg) ### Other diff --git a/docs/images/correctness_chart_W3C_SVG_11_TestSuite.svg b/docs/images/correctness_chart_W3C_SVG_11_TestSuite.svg index 7cca8a87..b4701ee1 100644 --- a/docs/images/correctness_chart_W3C_SVG_11_TestSuite.svg +++ b/docs/images/correctness_chart_W3C_SVG_11_TestSuite.svg @@ -1,50 +1,57 @@ - - + + Broken files in W3C SVG 1.1 TestSuite - svgcleaner 0.8.0 + svgcleaner 0.8.1 - + svgo 0.7.1 - - + + scour 0.35 + + + 0 - - + + 100 - - + + 200 - - + + 300 - - + + 400 - - + + 525 - - - + + + 1 - - + + 284 - - + + + 269 + + + Files diff --git a/docs/images/correctness_chart_oxygen.svg b/docs/images/correctness_chart_oxygen.svg index 06733c7f..2450c011 100644 --- a/docs/images/correctness_chart_oxygen.svg +++ b/docs/images/correctness_chart_oxygen.svg @@ -1,50 +1,59 @@ - - + + Broken files in Oxygen icon theme - svgcleaner 0.8.0 + svgcleaner 0.8.1 - + svgo 0.7.1 - - + + scour 0.35 + + + 0 - - + + 1000 - - + + 2000 - - + + 3000 - - + + 4000 - - + + 4941 - - - + + + 1 - - - 374 + + + + 182 + + + + + 8 - - + + Files diff --git a/docs/images/performance_chart_W3C_SVG_11_TestSuite.svg b/docs/images/performance_chart_W3C_SVG_11_TestSuite.svg index c9b9d52c..b5952334 100644 --- a/docs/images/performance_chart_W3C_SVG_11_TestSuite.svg +++ b/docs/images/performance_chart_W3C_SVG_11_TestSuite.svg @@ -1,46 +1,53 @@ - - + + Average cleaning time in W3C SVG 1.1 TestSuite - svgcleaner 0.8.0 + svgcleaner 0.8.1 - + svgo 0.7.1 - - + + scour 0.35 + + + 0ms - - - 75ms + + + 60ms - - - 150ms + + + 120ms - - - 225ms + + + 180ms - - - 300ms + + + 240ms - - - + + + 1.575 - - - 244.228 + + + 215.327 + + + + 137.773 - - + + Time diff --git a/docs/images/performance_chart_oxygen.svg b/docs/images/performance_chart_oxygen.svg index 42994c1c..4fb144f8 100644 --- a/docs/images/performance_chart_oxygen.svg +++ b/docs/images/performance_chart_oxygen.svg @@ -1,46 +1,53 @@ - - + + Average cleaning time in Oxygen icon theme - svgcleaner 0.8.0 + svgcleaner 0.8.1 - + svgo 0.7.1 - - + + scour 0.35 + + + 0ms - - - 200ms + + + 600ms - - - 400ms + + + 1200ms - - - 600ms + + + 1800ms - - - 800ms + + + 2400ms - - - + + + 7.567 - - + + 687.752 - - + + + 2216.091 + + + Time diff --git a/docs/images/ratio_chart_W3C_SVG_11_TestSuite.svg b/docs/images/ratio_chart_W3C_SVG_11_TestSuite.svg index d44bd496..e6b98491 100644 --- a/docs/images/ratio_chart_W3C_SVG_11_TestSuite.svg +++ b/docs/images/ratio_chart_W3C_SVG_11_TestSuite.svg @@ -1,52 +1,59 @@ - + Cleaning ratio in W3C SVG 1.1 TestSuite - - svgcleaner 0.8.0 + + svgcleaner 0.8.1 - - svgcleaner 0.7.1 + + svgcleaner 0.8.0 svgo 0.7.1 - - + + scour 0.35 + + + 0% - - + + 25% - - + + 50% - - + + 75% - - + + 100% - 32.74 + 32.75 - + - 32.21 + 32.74 40.77 - - + + + 37.83 + + + Removed data diff --git a/docs/images/ratio_chart_oxygen.svg b/docs/images/ratio_chart_oxygen.svg index 4b6e1fd2..607ccb83 100644 --- a/docs/images/ratio_chart_oxygen.svg +++ b/docs/images/ratio_chart_oxygen.svg @@ -1,52 +1,59 @@ - + Cleaning ratio in Oxygen icon theme - - svgcleaner 0.8.0 + + svgcleaner 0.8.1 - - svgcleaner 0.7.1 + + svgcleaner 0.8.0 svgo 0.7.1 - - + + scour 0.35 + + + 0% - - + + 25% - - + + 50% - - + + 75% - - + + 100% - 61.08 + 61.12 - - - 60.33 + + + 61.08 53.33 - - + + + 53.49 + + + Removed data diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000..43fb53d6 --- /dev/null +++ b/examples/README.md @@ -0,0 +1 @@ +This folder contains examples of using `svgcleaner` as a library. diff --git a/src/cli.rs b/src/cli.rs index 73160c99..1fc70ef5 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -165,7 +165,7 @@ pub fn prepare_app<'a, 'b>() -> App<'a, 'b> { App::new("svgcleaner") .help(include_str!("../data/help.txt")) - .version("0.8.0") + .version("0.8.1") .arg(Arg::with_name("in-file") .required(true) .index(1) diff --git a/tools/stats/data/correctness_chart_W3C_SVG_11_TestSuite.json b/tools/stats/data/correctness_chart_W3C_SVG_11_TestSuite.json index aa4cdc3f..6f413ff1 100644 --- a/tools/stats/data/correctness_chart_W3C_SVG_11_TestSuite.json +++ b/tools/stats/data/correctness_chart_W3C_SVG_11_TestSuite.json @@ -6,7 +6,7 @@ }, "items": [ { - "name": "svgcleaner 0.8.0", + "name": "svgcleaner 0.8.1", "value": 1 }, { diff --git a/tools/stats/data/correctness_chart_oxygen.json b/tools/stats/data/correctness_chart_oxygen.json index fd26a229..20f997a2 100644 --- a/tools/stats/data/correctness_chart_oxygen.json +++ b/tools/stats/data/correctness_chart_oxygen.json @@ -6,7 +6,7 @@ }, "items": [ { - "name": "svgcleaner 0.8.0", + "name": "svgcleaner 0.8.1", "value": 1 }, { diff --git a/tools/stats/data/performance_chart_W3C_SVG_11_TestSuite.json b/tools/stats/data/performance_chart_W3C_SVG_11_TestSuite.json index 3887cdbf..79fc388f 100644 --- a/tools/stats/data/performance_chart_W3C_SVG_11_TestSuite.json +++ b/tools/stats/data/performance_chart_W3C_SVG_11_TestSuite.json @@ -6,7 +6,7 @@ }, "items": [ { - "name": "svgcleaner 0.8.0", + "name": "svgcleaner 0.8.1", "value": 1.575 }, { diff --git a/tools/stats/data/performance_chart_oxygen.json b/tools/stats/data/performance_chart_oxygen.json index 85f7c50c..c37597ba 100644 --- a/tools/stats/data/performance_chart_oxygen.json +++ b/tools/stats/data/performance_chart_oxygen.json @@ -6,7 +6,7 @@ }, "items": [ { - "name": "svgcleaner 0.8.0", + "name": "svgcleaner 0.8.1", "value": 7.567 }, { diff --git a/tools/stats/data/ratio_chart_W3C_SVG_11_TestSuite.json b/tools/stats/data/ratio_chart_W3C_SVG_11_TestSuite.json index f8df0f85..7679d618 100644 --- a/tools/stats/data/ratio_chart_W3C_SVG_11_TestSuite.json +++ b/tools/stats/data/ratio_chart_W3C_SVG_11_TestSuite.json @@ -6,12 +6,12 @@ }, "items": [ { - "name": "svgcleaner 0.8.0", + "name": "svgcleaner 0.8.1", "value": 32.75 }, { - "name": "svgcleaner 0.7.1", - "value": 32.21 + "name": "svgcleaner 0.8.0", + "value": 32.74 }, { "name": "svgo 0.7.1", diff --git a/tools/stats/data/ratio_chart_oxygen.json b/tools/stats/data/ratio_chart_oxygen.json index bbeee1a5..e52e5cfd 100644 --- a/tools/stats/data/ratio_chart_oxygen.json +++ b/tools/stats/data/ratio_chart_oxygen.json @@ -6,12 +6,12 @@ }, "items": [ { - "name": "svgcleaner 0.8.0", + "name": "svgcleaner 0.8.1", "value": 61.12 }, { - "name": "svgcleaner 0.7.1", - "value": 60.33 + "name": "svgcleaner 0.8.0", + "value": 61.08 }, { "name": "svgo 0.7.1",