Skip to content

Commit 202f10e

Browse files
authored
Merge pull request blueimp#82 from Nateowami/master
Update README.md to clarify specifying orientation from Exif data
2 parents 5cae749 + 090802d commit 202f10e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,11 @@ Requires `canvas: true`.
194194
* **crop**: Crops the image to the maxWidth/maxHeight constraints if set to
195195
`true`.
196196
Enabling the `crop` option also enables the `canvas` option.
197-
* **orientation**: Allows to transform the canvas coordinates according to the
198-
EXIF orientation specification.
199-
Setting the `orientation` also enables the `canvas` option.
197+
* **orientation**: Transform the canvas according to the
198+
specified Exif orientation (number in range 1 to 8). See
199+
[loadImage.parseMetaData](https://github.com/blueimp/JavaScript-Load-Image#meta-data-parsing)
200+
for parsing EXIF data. Setting the `orientation` also enables the `canvas`
201+
option.
200202
* **canvas**: Returns the image as
201203
[canvas](https://developer.mozilla.org/en/HTML/Canvas) element if set to `true`.
202204
* **crossOrigin**: Sets the crossOrigin property on the img element for loading
@@ -266,9 +268,9 @@ Blob objects of resized images can be created via
266268
[canvas.toBlob()](https://github.com/blueimp/JavaScript-Canvas-to-Blob).
267269

268270
### Exif parser
269-
If you include the Load Image Exif Parser extension, the **parseMetaData**
270-
callback **data** contains the additional property **exif** if Exif data could
271-
be found in the given image.
271+
If you include the Load Image Exif Parser extension, the argument passed to the
272+
callback for **parseMetaData** will contain the additional property **exif** if
273+
Exif data could be found in the given image.
272274
The **exif** object stores the parsed Exif tags:
273275

274276
```js
@@ -313,3 +315,4 @@ The JavaScript Load Image script is released under the
313315
Achim Stöhr.
314316
* Exif tags mapping based on Jacob Seidelin's
315317
[exif-js](https://github.com/jseidelin/exif-js).
318+

0 commit comments

Comments
 (0)