Skip to content

docs(input): correct getNormalSize with EXIF orientation example#3241

Merged
lovell merged 1 commit intolovell:mainfrom
Fonger:docs-orientation-size
May 31, 2022
Merged

docs(input): correct getNormalSize with EXIF orientation example#3241
lovell merged 1 commit intolovell:mainfrom
Fonger:docs-orientation-size

Conversation

@Fonger
Copy link
Copy Markdown
Contributor

@Fonger Fonger commented May 30, 2022

The example is wrong. >= has precedence over || so the example always switches the width and height if orientation has non-zero value and this leads to incorrect size.

@lovell lovell merged commit 4d82331 into lovell:main May 31, 2022
@lovell
Copy link
Copy Markdown
Owner

lovell commented May 31, 2022

Good spot, thank you for fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants