mirror of
https://github.com/lovell/sharp.git
synced 2025-12-18 23:05:04 +01:00
docs(input): correct getNormalSize with EXIF orientation example (#3241)
This commit is contained in:
@@ -357,7 +357,7 @@ function _isStreamInput () {
|
||||
* const size = getNormalSize(await sharp(input).metadata());
|
||||
*
|
||||
* function getNormalSize({ width, height, orientation }) {
|
||||
* return orientation || 0 >= 5
|
||||
* return (orientation || 0) >= 5
|
||||
* ? { width: height, height: width }
|
||||
* : { width, height };
|
||||
* }
|
||||
|
||||
Reference in New Issue
Block a user