Add 'size' attribute to callback's info Object #138

This commit is contained in:
Lovell Fuller
2014-12-15 13:54:19 +00:00
parent f026a835fd
commit d3225fa193
3 changed files with 54 additions and 29 deletions

View File

@@ -429,7 +429,7 @@ An advanced setting to disable adaptive row filtering for the lossless PNG outpu
`callback`, if present, is called with two arguments `(err, info)` where:
* `err` contains an error message, if any.
* `info` contains the output image `format`, `width` and `height`.
* `info` contains the output image `format`, `size` (bytes), `width` and `height`.
A Promises/A+ promise is returned when `callback` is not provided.
@@ -441,7 +441,7 @@ Write image data to a Buffer, the format of which will match the input image by
* `err` is an error message, if any.
* `buffer` is the output image data.
* `info` contains the output image `format`, `width` and `height`.
* `info` contains the output image `format`, `size` (bytes), `width` and `height`.
A Promises/A+ promise is returned when `callback` is not provided.