-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Is it possible to update width and height of ngf-resize after file has been selected? #1117
Comments
Just set the quality on ngf-resize it should use the original size by default so no need for calling imgaeDimentions |
When I set quality as ngf-resize="{quality:0.8}" , I got following error. |
Gonna fix it in the next version. But you probably want to resize the photo as well if you are reducing the quality. |
Thank you danialfarid. |
@danialfarid, can you provide a more complete example where the image is first resized then being uploaded? I have tried ngf-resize but that's not working for me. Maybe what you're suggesting with |
|
Fixed at version 10.0.0. You can just specify the quality. |
I would like to reduce quality of image before image upload. I tried to use 'ngf-resize' with quality set to 0.8. I used Upload.imageDimensions to get width and height of image and use it as parameter for ngf-resize ( as I don't want to change the dimension) . However, if I update the ngf-resize using this value, it is used only when another file has been selected. It does not work for the current file being selected. Is there a way to update them for the currently selected file?
The text was updated successfully, but these errors were encountered: