Skip to content

Commit f92d92b

Browse files
committed
Merge pull request danialfarid#1352 from adambuczynski/readme-fixes
Update README.md
2 parents 740b610 + 1f9dd7a commit f92d92b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ At least one of the `ngf-select` or `ngf-drop` are mandatory for the plugin to l
211211
// restoreExif boolean default true, will restore exif info on the resized image.
212212
ngf-resize-if="$width > 1000 || $height > 1000" or "resizeCondition($file, $width, $height)"
213213
// apply ngf-resize only if this function returns true. To filter specific images to be resized.
214-
ngf-validate-after-resize="false" // (defulat) boolean if true all validation will be run after
214+
ngf-validate-after-resize="boolean" // default false, if true all validation will be run after
215215
// the images are being resized, so any validation error before resize will be ignored.
216216

217217
//validations:
@@ -366,7 +366,7 @@ Upload.imageDimensions(file).then(function(dimensions){console.log(dimensions.wi
366366
Upload.mediaDuration(file).then(function(durationInSeconds){...});
367367

368368
/* Resizes an image. Returns a promise */
369-
upload.resize(file, width, height, quality, type, ratio, centerCrop).then(function(resizedFile){...});
369+
Upload.resize(file, width, height, quality, type, ratio, centerCrop, resizeIf, restoreExif).then(function(resizedFile){...});
370370

371371
/* returns boolean showing if image resize is supported by this browser*/
372372
Upload.isResizeSupported()

0 commit comments

Comments
 (0)