Skip to content

Commit 7e5f90b

Browse files
committed
Update orientation requirements for canvas/meta.
1 parent 212a3a3 commit 7e5f90b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,15 @@ an `integer` in the range of `1` to `8` or the boolean value `true`.
332332
When set to `true`, it will set the orientation value based on the EXIF data of
333333
the image, which will be parsed automatically if the exif library is available.
334334

335-
Setting `orientation` to an integer in the range of `2` to `8` enables the
336-
`canvas` option.
337335
Setting `orientation` to `true` enables the `canvas` and `meta` options, unless
338336
the browser supports automatic image orientation (see
339-
[browser support for image-orientation](https://caniuse.com/#feat=css-image-orientation)).
337+
[browser support for image-orientation](https://caniuse.com/#feat=css-image-orientation)).
338+
Setting `orientation` to `1` enables the `canvas` and `meta` options if the
339+
browser does support automatic image orientation (to allow reset of the
340+
orientation).
341+
Setting `orientation` to an integer in the range of `2` to `8` always enables
342+
the `canvas` option and also enables the `meta` option if the browser supports
343+
automatic image orientation (again to allow reset).
340344

341345
### meta
342346

0 commit comments

Comments
 (0)