From 00ea6fc986ceed40f88861a45ca296c7e9d7c965 Mon Sep 17 00:00:00 2001 From: Danial Farid Date: Sat, 28 Nov 2015 20:34:12 -0500 Subject: [PATCH 1/5] Update README.md --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f644f6b3..2e8251a0 100644 --- a/README.md +++ b/README.md @@ -194,10 +194,12 @@ At least one of the `ngf-select` or `ngf-drop` are mandatory for the plugin to l +ngf-stop-propagation="boolean" // default false, whether to propagate drag/drop events. +ngf-hide-on-drop-not-available="boolean" // default false, hides element if file drag&drop is not - ngf-resize="{width: 100, height: 100, quality: .8, type: 'image/jpg'}" // resizes the image to the given - // width, height and quality (optional between 0.1 and 1.0), optionally convert it to the given 'type' format. - // Resize will keep the aspect ratio and if any of width or height is not specified the - // original image width or height will be used. + ngf-resize="{width: 100, height: 100, quality: .8, type: 'image/jpg', ratio: '1:2', centerCrop: true}" + // resizes the image to the given width/height or ratio. Quality is optional between 0.1 and 1.0), + // type is optional convert it to the given image type format. + // centerCrop true will center crop the image if it doesn't fit within the given width/height or ratio. + // centerCrop false (default) will not crop the image and will fit it within the given width/height or ratio + // so the resulting image width (or height) could be less than given width (or height). //validations: ngf-pattern="'.pdf,.jpg,video/*,!.jog'" // comma separated wildcard to filter file names and types allowed @@ -208,8 +210,9 @@ At least one of the `ngf-select` or `ngf-drop` are mandatory for the plugin to l // ngf-max-total-size is for multiple file select and validating the total size of all files. ngf-min-height, ngf-max-height, ngf-min-width, ngf-max-width="1000" in pixels only images // validate error name: maxHeight - ngf-ratio="9x6,1.6" list of comma separated valid aspect ratio of images in float or 3x2 format + ngf-ratio="8:10,1.6" // list of comma separated valid aspect ratio of images in float or 2:3 format // validate error name: ratio + ngf-min-ratio, ngf-max-ratio="8:10" // min or max allowed aspect ratio for the image. ngf-min-duration, ngf-max-duration="100.5" in seconds or "'10s'" or "'10m'" or "'10h'" only audio, video // validate error name: maxDuration ngf-validate="{size: {min: 10, max: '20MB'}, width: {min: 100, max:10000}, height: {min: 100, max: 300} From 5e8426af820b07cccd39143910c43f8e428d9660 Mon Sep 17 00:00:00 2001 From: Danial Farid Date: Sat, 28 Nov 2015 20:35:31 -0500 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e8251a0..25561821 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Table of Content: * file upload progress, cancel/abort * file drag and drop (html5 only) * image paste form clipboard and drag and drop from browser pages (html5 only). -* image resize native and image crop through [ngImgCrop](https://github.com/alexk111/ngImgCrop). See [crop sample](http://jsfiddle.net/xxo3sk41/1/) (html5 only) +* image resize and center crop (native) and user controlled crop through [ngImgCrop](https://github.com/alexk111/ngImgCrop). See [crop sample](http://jsfiddle.net/xxo3sk41/1/) (html5 only) * orientation fix for jpeg image files with exif orientation data * resumable uploads: pause/resume upload (html5 only) * validation on file type/size, image width/height, video/audio duration and `ng-required` support. From 00016b39fe6b3ee78b1e3e91a5d2bcf8c3c1d499 Mon Sep 17 00:00:00 2001 From: Danial Farid Date: Sat, 28 Nov 2015 20:37:14 -0500 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25561821..bf5d6cbb 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Table of Content: * image resize and center crop (native) and user controlled crop through [ngImgCrop](https://github.com/alexk111/ngImgCrop). See [crop sample](http://jsfiddle.net/xxo3sk41/1/) (html5 only) * orientation fix for jpeg image files with exif orientation data * resumable uploads: pause/resume upload (html5 only) -* validation on file type/size, image width/height, video/audio duration and `ng-required` support. +* native validation support for file type/size, image width/height/aspect ratio, video/audio duration, and `ng-required` with pluggable cusome sync or async validations. * show thumbnail or preview of selected images/audio/videos * supports CORS and direct upload of file's binary data using `Upload.$http()` * plenty of sample server side code, available on nuget From 15160ae7813fa407cfb14ddda9a0554ed116aefe Mon Sep 17 00:00:00 2001 From: Danial Farid Date: Sat, 28 Nov 2015 20:42:24 -0500 Subject: [PATCH 4/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf5d6cbb..fec97702 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ Lightweight Angular directive to upload files. Ask questions on [StackOverflow](http://stackoverflow.com/) under the [ng-file-upload](http://stackoverflow.com/tags/ng-file-upload/) tag.
-For bug report or feature request please search through existing [issues](https://github.com/danialfarid/ng-file-upload/issues) first then open a new one [here](https://github.com/danialfarid/ng-file-upload/issues/new). For faster response provide steps to reprodce/versions with a jsfiddle from [here](http://jsfiddle.net/ew4jakn5/). Need paid support contact [me](mailto:danial.farid@gmail.com).
-Contributions are always welcome. If you like this plugin give it a thumbs up at [ngmodules](http://ngmodules.org/modules/ng-file-upload). +For bug report or feature request please search through existing [issues](https://github.com/danialfarid/ng-file-upload/issues) first then open a new one [here](https://github.com/danialfarid/ng-file-upload/issues/new). For faster response provide steps to reproduce/versions with a jsfiddle link. If you need support for you company contact [me](mailto:danial.farid@gmail.com).
+If you like this plugin give it a thumbs up at [ngmodules](http://ngmodules.org/modules/ng-file-upload) or get me a cup of tea . Contributions are always welcomed. Table of Content: From 149a6a8ef0f34b03b4951827ab7bf721fef0db38 Mon Sep 17 00:00:00 2001 From: Danial Farid Date: Sat, 28 Nov 2015 20:44:40 -0500 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fec97702..55dc281a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Lightweight Angular directive to upload files. Ask questions on [StackOverflow](http://stackoverflow.com/) under the [ng-file-upload](http://stackoverflow.com/tags/ng-file-upload/) tag.
For bug report or feature request please search through existing [issues](https://github.com/danialfarid/ng-file-upload/issues) first then open a new one [here](https://github.com/danialfarid/ng-file-upload/issues/new). For faster response provide steps to reproduce/versions with a jsfiddle link. If you need support for you company contact [me](mailto:danial.farid@gmail.com).
-If you like this plugin give it a thumbs up at [ngmodules](http://ngmodules.org/modules/ng-file-upload) or get me a cup of tea . Contributions are always welcomed. +If you like this plugin give it a thumbs up at [ngmodules](http://ngmodules.org/modules/ng-file-upload) or get me a cup of tea . Contributions are always welcomed. Table of Content: