Skip to content

Using Transformation Object to Get Cropped Image Programmatically #461

Answered by guoyingtao
QuimboDiego asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@DiegoPebblebee
Comment options

@guoyingtao
Comment options

@DiegoPebblebee
Comment options

Answer selected by QuimboDiego
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants