'minZoom Prop is not working as expected on antd-img-crop

I have been working with this package and it's pretty cool, but when I added the minZoom prop less than 1 it is not returning the complete image and cut off some of its parts on its own. I have created a sandbox link please have a review by doing some zoom out an image and properly fit in https://codesandbox.io/s/antd-img-crop-forked-7yl9cg?file=/src/index.js

After uploading this image coach-image-cid-791-1651835562342-cmwea9 (1)

I am receiving this, as you can see how some of its part is cutted 99A18A5F-23F9-434D-85FD-B0CD79E02E8F_4_5005_c

If I am doing something wrong please do let me know. Thanks



Solution 1:[1]

antd-img-crop works perfect, minZoom is working. You have just to define the minZoom according to the size of the picture frame. Your image seems to be not working because it is rectangulare, and then even if you set zoom to 0.5 the rectangle is wide than the square you are using for ratio (1/1)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ingenious_Hans