Using Transformation Object to Get Cropped Image Programmatically #461
-
If I have a Transformation object, is it possible to generate the image by applying its values directly, without presenting the CropViewController? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This feature isn’t currently supported in Mantis. |
Beta Was this translation helpful? Give feedback.
-
@QuimboDiego If that matches your use case, I’ll share a code example when I get a chance — it should be doable. |
Beta Was this translation helpful? Give feedback.
@QuimboDiego
I’ve found a way to achieve this. It involves using the CropInfo returned from cropViewControllerDidCrop instead of relying on the saved transformation to crop image programmatically. You’ll also need to apply this CropInfo to images that have the same aspect ratio as the one originally cropped.
If that matches your use case, I’ll share a code example when I get a chance — it should be doable.