Skip to content

Commit 4817008

Browse files
committed
Updated README and package information.
1 parent e8c0240 commit 4817008

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 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+
* **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*.
9293

9394
They can be used the following way:
9495

@@ -103,12 +104,13 @@ window.loadImage(
103104
maxHeight: 300,
104105
minWidth: 100,
105106
minHeight: 50,
106-
canvas: true
107+
canvas: true,
108+
noRevoke: true
107109
}
108110
);
109111
```
110112

111-
All options are optional. By default, the image is returned as HTML **img** element without any image size restrictions.
113+
All settings are optional. By default, the image is returned as HTML **img** element without any image size restrictions.
112114

113115
## License
114116
The JavaScript Load Image script is released under the [MIT license](http://www.opensource.org/licenses/MIT).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blueimp-load-image",
3-
"version": "1.1.7",
3+
"version": "1.2",
44
"title": "JavaScript Load Image",
55
"description": "JavaScript Load Image is a function to load images provided as File or Blob objects or via URL. It returns an optionally scaled HTML img or canvas element.",
66
"keywords": [

0 commit comments

Comments
 (0)