diff --git a/README.md b/README.md
index 3a4f751..a81220e 100644
--- a/README.md
+++ b/README.md
@@ -18,18 +18,22 @@ Or [Bower](http://bower.io/):
Then add a `script` tag in your an HTML in the [best position](http://stackoverflow.com/questions/436411/where-is-the-best-place-to-put-script-tags-in-html-markup) referencing your local file.
-
+```html
+
+```
-**Note**: This repo has no `.min.js`. Do your own [minification](https://en.wikipedia.org/wiki/Minification_(programming)) if you want that.
+You can also use a minified version hosted on jsDelivr
-If you prefer another package manager you will probably manage :D. Or you can clone this GIT repository or download it's ZIP file and extract `exif.js` to your project.
+```html
+
+```
## Usage
The package adds a global `EXIF` variable (or AMD or CommonJS equivalent).
Start with calling the `EXIF.getData` function. You pass it an image as a parameter:
- either an image from a ``
-- OR a user selected image in a `` element on your page.
+- OR a user selected image in a `` element on your page.
As a second parameter you specify a callback function. In the callback function you should use `this` to access the image with the aforementioned metadata you can then use as you want.
That image now has an extra `exifdata` property which is a Javascript object with the EXIF metadata. You can access it's properties to get data like the *image caption*, the *date a photo was taken* or it's *orientation*.
@@ -67,7 +71,7 @@ function getExif() {
**HTML**:
```html
-
Make and model:
+
Make and model:
@@ -78,6 +82,9 @@ Note there are also alternate tags, such the `EXIF.TiffTags`. See the source cod
You can also get back a string with all the EXIF information in the image pretty printed by using `EXIF.pretty`.
Check the included [index.html](/exif-js/exif-js/blob/master/index.html).
+**XMP**
+Since issue #53 was merged also extracting of XMP data is supported. To not slow down this is optional, and you need to call `EXIF.enableXmp();` before using `EXIF.getData()`.
+
Please refer to the [source code](exif.js) for more advanced usages such as getting image data from a [File/Blob](https://developer.mozilla.org/en/docs/Web/API/Blob) object (`EXIF.readFromBinaryFile`).
## Contributions
diff --git a/bower.json b/bower.json
index 9d8533b..0838f80 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "exif-js",
- "version": "2.2.2",
+ "version": "2.3.0",
"homepage": "https://github.com/exif-js/exif-js",
"authors": [
"Jacob Seidelin"
diff --git a/exif.js b/exif.js
index 35395cf..1984373 100644
--- a/exif.js
+++ b/exif.js
@@ -738,7 +738,7 @@
function getStringFromDB(buffer, start, length) {
var outstr = "";
- for (n = start; n < start+length; n++) {
+ for (var n = start; n < start+length; n++) {
outstr += String.fromCharCode(buffer.getUint8(n));
}
return outstr;
diff --git a/package.json b/package.json
index ee4cf2f..8da629d 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
"version": "2.3.0",
"description": "JavaScript library for reading EXIF image metadata",
"main": "exif.js",
+ "types": "exif.d.ts",
"directories": {
"example": "example"
},