diff --git a/README.md b/README.md index e2f26f0..4807edf 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ The image object has the following properties: - file - url +- dataURL ### Single image with resizing @@ -30,15 +31,17 @@ The image object has the following properties: resize-max-width="250" resize-quality="0.7" /> Original -Resized +Resized ``` The image object has the following properties: - file - url +- dataURL - resized - - url + - dataURL + - type ### Multiple images with resizing @@ -49,23 +52,26 @@ The image object has the following properties: resize-max-width="250" resize-quality="0.7" /> Originals -Resized +Resized ``` When used with multiple the image object is always an array of objects with the following properties: - file - url +- dataURL - resized - - url + - dataURL + - type See [demo.html](demo.html) for more concrete examples. ### Optional Parameter: -- resize-quality -- resize-max-height -- resize-max-width +- resize-quality (default is 0.7) +- resize-type (default is 'image/jpg') +- resize-max-height (default is 300) +- resize-max-width (default is 250) ## Features diff --git a/demo.html b/demo.html index f76d3ae..4d4cd56 100644 --- a/demo.html +++ b/demo.html @@ -34,7 +34,7 @@

Single image with resizing

Original

Resized

- +
@@ -77,7 +77,7 @@

Multiple images with resizing

Originals

Resized

- +
@@ -86,8 +86,7 @@

Multiple images with resizing

Uploaded Image / Size: {{sizeInBytes}} Bytes

- - +