Permalink
Browse files

0.0.7

  • Loading branch information...
1 parent fc2b091 commit ece58c9d590e3d1deb9463918e6004ef0a133b97 @deepsweet deepsweet committed Oct 14, 2012
Showing with 35 additions and 8 deletions.
  1. +11 −0 CHANGELOG.md
  2. +20 −7 README.md
  3. +1 −1 package.json
  4. +3 −0 plugins/convertPathData.js
View
@@ -1,3 +1,14 @@
+### [ [>](//github.com/svg/svgo/tree/v0.0.7) ] 0.0.7 / 14.10.2012
+* new plugin [convertPathData](plugins/convertPathData.js)
+* --input data now can be a Data URI base64 string
+* --output data now can be a Data URI base64 string with --datauri flag
+* Travis CI
+* JSHint corrections + .jshintrc
+* [.editorconfig](http://editorconfig.org/)
+* display time spent on optimization
+* .svgo → config.json
+* lib/phantom_wrapper.js → lib/phantom.js
+
### [ [>](//github.com/svg/svgo/tree/v0.0.6) ] 0.0.6 / 04.10.2012
* add --test option to make a visual comparison of two files (PhantomJS pre-required)
* update README and CHANGELOG with the correct relative urls
View
@@ -36,6 +36,7 @@ Today we have:
* [ [>](svgo/blob/master/plugins/cleanupSVGElem.js) ] cleanup SVG element from useless attributes
* [ [>](svgo/blob/master/plugins/convertStyleToAttrs.js) ] convert styles into attributes
* [ [>](svgo/blob/master/plugins/convertColors.js) ] convert colors (from rgb() to #rrggbb, from #rrggbb to #rgb)
+* [ [>](svgo/blob/master/plugins/convertPathData.js) ] convert Path data to relative, trim useless delimiters and much more
* [ [>](svgo/blob/master/plugins/moveElemsAttrsToGroup.js) ] move elements attributes to the existing group wrapper
* [ [>](svgo/blob/master/plugins/collapseGroups.js) ] collapse groups
@@ -58,22 +59,34 @@ Usage:
Options:
-h, --help : Help
-v, --version : Version
- -c CONFIG, --config=CONFIG : Local config
- -d DISABLE, --disable=DISABLE : Disable plugin
- -e ENABLE, --enable=ENABLE : Enable plugin
- -i INPUT, --input=INPUT : Input file (default: stdin)
- -o OUTPUT, --output=OUTPUT : Output file (default: stdout)
- -p, --pretty : Make SVG pretty printed
- -t, --test : Make a visual comparison of two files (PhantomJS pre-required)
+ -i INPUT, --input=INPUT : Input: stdin (default) | filename | Data URI base64 string
+ -o OUTPUT, --output=OUTPUT : Output: stdout (default) | filename
+ -c CONFIG, --config=CONFIG : Local config file to extend default
+ --disable=DISABLE : Disable plugin by name
+ --enable=ENABLE : Enable plugin by name
+ --datauri : Output as Data URI base64 string
+ --pretty : Make SVG pretty printed
+ --test : Make a visual comparison of two files (PhantomJS pre-required)
```
+With files:
+
```
svgo -i test.svg -o test.min.svg
```
+
+With stdin / stdout:
+
```
cat test.svg | svgo -d removeDoctype -d removeComment > test.min.svg
```
+With Data URI base64 strings:
+
+```
+svgo -i 'data:image/svg+xml;base64,…' -o test.min.svg
+```
+
## TODO
1. documentation and "plugins how-to"
View
@@ -1,6 +1,6 @@
{
"name": "svgo",
- "version": "0.0.6",
+ "version": "0.0.7",
"description": "Nodejs-based tool for optimizing SVG vector graphics files",
"keywords": [
"svgo",
@@ -1,5 +1,8 @@
/**
* Convert absolute Path to relative,
+ * collapse repeated instructions,
+ * detect and convert Lineto shorthands,
+ * remove useless instructions like "l0,0",
* trim useless delimiters and leading zeros,
* decrease accuracy of floating-point numbers.
*

0 comments on commit ece58c9

Please sign in to comment.