DEV Community

Cover image for How to crop image in browser using JIMP?
Gulshan Saini
Gulshan Saini

Posted on

How to crop image in browser using JIMP?

I had a situation where I had no backend server to handle the crop and resizing of an image. I know of a few cloud services which could do this easily however they come with a cost. So I thought to implement the solution within the browser itself. Before we proceed, let we warn you that this might not be an optimal solution for a page with a lot of images and which might require the use of web worker to offload the task to worker threads.

Read full article

Output

Crop image vs original image JIMP output

Top comments (0)