1 month ago

How to fit image in canvas using cropperJS

Posted 1 month ago by Jonjie

I am new using cropperjs library. But I'm struggling on how can I configure it.

What I have

What I need

I want to integrate a full image crop where you just need to drag the photo inside the canvas instead of having a bordered square to crop the photo. I also need to make the width of the photo fit to the width of the canvas so you cannot drag it left/right; you could only drag it up/down to crop the photo.

Please sign in or create an account to participate in this conversation.