Open mridulbarman027 opened 1 year ago
This is not a bug but the expected behaviour.
What would you expect instead of this?
Its shoud auto zoom in photo so that it fills the empty space in photos and prevent any empty spaces while rotating. You can check other editors for reference.
I see your point. The behaviour you expect could be added as a new option (that could be defaulted to "no empty space" in a future major version).
That being said, we need to implement the logic to automatically set the right zoom level based on the rotation. This is not trivial and requires some math/geometry investigation. Are you willing to have a look into this and create a PR?
Given position and rotation of image, we can calculate the min scale ensure the boundary of image and canvas have no intersections.
Describe the bug While rotating image its showing the empty spaces inside the cropper.