Ability to resize an image after image is loaded in uploader BEFORE upload #17044
Unanswered
anli-xsigns
asked this question in
CLI - PWA mode
Replies: 1 comment
-
You can use FileReader to do this easily enough. All these libraries use similar tactics under the hood anyways.
Note that I've taken this code directly from phind so you might need to make some tweaks but I use very similar code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose a user uploads a very high resolution from phone. We want the ability to check the resolution and of the image if it is greater than X,Y, then resize it to x,y and then upload it. This will eliminate a lot of bandwidth and storage problems down the road due to large image sizes.
In #7165 using vue-croppa is suggested but that project looks dead and is only available for vue2. Are there any other suggestions? Thanks a lot for your help!
Beta Was this translation helpful? Give feedback.
All reactions