react-advanced-cropper icon indicating copy to clipboard operation
react-advanced-cropper copied to clipboard

How to set the maximum zoom?

Open ericksonholguin opened this issue 2 years ago • 1 comments

I have been using this library and I have loved it, the documentation is a bit extensive and I am still in the process of reading it completely, therefore I have a question and that is how could I apply a maximum zoom to my images? because currently the user could do some kind of infinite zoom and I would like to restrict this feature to the users of my application

ericksonholguin avatar Dec 29 '23 11:12 ericksonholguin

@Eriickson, well, you can set minWidth and minHeight.

It's half-measure, but it will prevent infinite zoom, otherwise you can customize the transformImageAlgorithm to limit zoom explicitly.

Norserium avatar Jan 20 '24 15:01 Norserium

@Eriickson, I close this issue, but feel free to reopen in the future.

Norserium avatar Jun 09 '24 17:06 Norserium