You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/input.js
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -299,8 +299,8 @@ function _isStreamInput () {
299
299
*
300
300
* - `format`: Name of decoder used to decompress image data e.g. `jpeg`, `png`, `webp`, `gif`, `svg`
301
301
* - `size`: Total size of image in bytes, for Stream and Buffer input only
302
-
* - `width`: Number of pixels wide (EXIF orientation is not taken into consideration)
303
-
* - `height`: Number of pixels high (EXIF orientation is not taken into consideration)
302
+
* - `width`: Number of pixels wide (EXIF orientation is not taken into consideration, see example below)
303
+
* - `height`: Number of pixels high (EXIF orientation is not taken into consideration, see example below)
304
304
* - `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://libvips.github.io/libvips/API/current/VipsImage.html#VipsInterpretation)
305
305
* - `channels`: Number of bands e.g. `3` for sRGB, `4` for CMYK
306
306
* - `depth`: Name of pixel depth format e.g. `uchar`, `char`, `ushort`, `float` [...](https://libvips.github.io/libvips/API/current/VipsImage.html#VipsBandFormat)
@@ -343,6 +343,17 @@ function _isStreamInput () {
343
343
* // data contains a WebP image half the width and height of the original JPEG
344
344
* });
345
345
*
346
+
* @example
347
+
* // Based on EXIF rotation metadata, get the right-side-up width and height:
0 commit comments