
Image manipulation in JavaScript is done using the canvas element. Imagine this with operations like undo/redo and complex text and image overlays. If a user is manipulating a heavy image, it will take a lot of time to download transformed images from the server. The speed is critical for the user in these editors. Rich image editors that work on client-sideĪ rich image editor that offers image resize, crop, rotation, zoom IN and zoom OUT capabilities often require image manipulation on the client-side.You can first resize images on the browser and then upload them to reduce upload time and improve application performance. Uploading a large file on your server will take a lot of time. Resizing images before uploading to server.However, there are a couple of situations where you might need to resize images purely using JavaScript on the client side.

This approach also saves data while transmitting images from the server to the client. Image resizing is computationally expensive and usually done on the server-side so that right-sized image files are delivered to the client-side.
