guoyingtao / Mantis

An iOS Image cropping library, which mimics the Photo App written in Swift.
MIT License
907 stars 180 forks source link

Regarding the issue of the cropping box following the rotation of the image #356

Closed tac-han closed 10 months ago

tac-han commented 10 months ago

No matter how the image is rotated, we need to keep the cropping frame fixed to landscape mode. Is it possible to provide a method to prevent the cropping frame from rotating with the image? Thanks

guoyingtao commented 10 months ago

@HanX1ao Please check PR #357 to see if it works for you. To test the new feature, you need to set CropViewConfig.fixCropBoxWhenRotating90Degree = true

tac-han commented 10 months ago

@guoyingtao it looks like fine

guoyingtao commented 10 months ago

@HanX1ao I rename fixCropBoxWhenRotating90Degree to rotateCropBoxFor90DegreeRotation, now you need to set CropViewConfig. rotateCropBoxFor90DegreeRotation to false for tests. I just released Mantis 1.7.0 which includes this feature. Please let me know if it works for you.

guoyingtao commented 10 months ago

@HanX1ao I closed this ticket since the latest release includes this feature. You can reopen it if it does not work for you.