Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wliao authored and wliao committed Mar 2, 2015
1 parent e336d89 commit 28f045f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mocha
Convert image file to image base64 data
* {string} ``filename`` required
The image path
* {function} ``callback`` required
* {function} ``callback(err, data)`` required
Callback with image base64 data
```js
base64Img.base64('path/demo.png', function(err, data) {})
Expand All @@ -36,7 +36,7 @@ Image base64 data
Dest path, if the destpath is root, pass empty string
* {string} ``name`` required
The image's filename
* {function} ``callback`` required
* {function} ``callback(err, filepath)`` required
```js
base64Img.img('data:image/png;base64,...', 'dest', '1', function(err, filepath) {});
```
Expand Down

0 comments on commit 28f045f

Please sign in to comment.