Add size to metadata response (Stream/Buffer only) #695

This commit is contained in:
Lovell Fuller
2018-10-02 18:05:08 +01:00
parent 17f942c802
commit db4df6f0b2
5 changed files with 21 additions and 3 deletions

View File

@@ -177,6 +177,7 @@ function clone () {
* A Promises/A+ promise is returned when `callback` is not provided.
*
* - `format`: Name of decoder used to decompress image data e.g. `jpeg`, `png`, `webp`, `gif`, `svg`
* - `size`: Total size of image in bytes, for Stream and Buffer input only
* - `width`: Number of pixels wide (EXIF orientation is not taken into consideration)
* - `height`: Number of pixels high (EXIF orientation is not taken into consideration)
* - `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://github.com/libvips/libvips/blob/master/libvips/iofuncs/enumtypes.c#L636)