Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e71cfa3

Browse files
committed
Added crossOrigin to the options list.
1 parent d1b106c commit e71cfa3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ The optional third argument is a map of options:
8989
* **minWidth**: Defines the minimum width of the img/canvas element.
9090
* **minHeight**: Defines the minimum height of the img/canvas element.
9191
* **canvas**: Defines if the returned element should be a [canvas](https://developer.mozilla.org/en/HTML/Canvas) element.
92+
* **crossOrigin**: Sets the crossOrigin property on the img element for loading [CORS enabled images](https://developer.mozilla.org/en-US/docs/HTML/CORS_Enabled_Image).
9293
* **noRevoke**: By default, the [created object URL](https://developer.mozilla.org/en/DOM/window.URL.createObjectURL) is revoked after the image has been loaded, except when this option is set to *true*.
9394

9495
They can be used the following way:

0 commit comments

Comments
 (0)