Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic ngf-resize #1345

Closed
rkusuma opened this issue Feb 12, 2016 · 2 comments
Closed

Dynamic ngf-resize #1345

rkusuma opened this issue Feb 12, 2016 · 2 comments

Comments

@rkusuma
Copy link

rkusuma commented Feb 12, 2016

Hi @danialfarid ,

Can i construct ngf-resize object dynamically? For example:
if the original image width greater than 1000px i want to use {width: 1000, quality: .8, restoreExif: false}
else {quality: .8, restoreExif: false}

Thank You

@danialfarid
Copy link
Owner

No, Use Upload.resize(file).then() instead before uploading.

@danialfarid
Copy link
Owner

Feature added to 12.0.3. ngf-resize can return a promise that resolves to the resize options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants