1

I am trying to build a web tool to resize bulk images. But, uploading to server is taking too much time. Is there any way, I can do the resizing in the browser itself or anything else?

I found a website which does the resizing in the browser. https://bulkresizephotos.com/en

Is there any idea what is the logic behind this?

  • You can have a look at how [compressor.js](https://github.com/fengyuanchen/compressorjs) does it or even use it for your task. – trixn Mar 19 '21 at 09:31

1 Answers1

0

You can use FileReader and Canvas in order to load images locally and draw them in a specific size on your canvas. After that you can load the canvas into a new image using toDataURL.

rauberdaniel
  • 982
  • 8
  • 22