melloman's avatar

File upload image resizing on client side

Is there a way in a Laravel project to have a file upload element that will resize the image to specifications on the client side before uploading to the server? I have an image uploader which will be used to upload images from a mobile phone and these tend to be around 5mb which takes ages to upload so I want to find a solution to lessen this time.

0 likes
2 replies
Snapey's avatar

It's not a Laravel specific topic since the problem exists in the client, not the server, so don't limit your searches to laravel related answers.

What you need is some form of js library that will take care of it. Here's another example https://davidwalsh.name/resize-image-canvas

Please or to participate in this conversation.