Editing image with UIImagePickerController

Section 3, page 709, the 3rd paragraph states, The info dictionary contains data describing the image that the user picked. You use the UIImagePickerControllerEditedImage key to retrieve a UIImage object that contains the final image after the user moved and/or scaled it. (You can also get the original
image if you wish, using a different key.)

Changed the key to UIImagePickerControllerOriginalImage but didn’t see any difference as the app doesn’t make any change to the image with the UIImagePickerController, though it does resizing after picked the image. Tried to find a way to edit the image with the UIImage picker controller such as cropping, scaling, etc. but neither my simulator nor my real device has that option.

Do you have an example or any suggestion how to edit an image with UIImagePickerController so that we can see some difference with each key, UIImagePickerControllerOriginalImage and UIImagePickerControllerEditedImage?

Many thanks.

Before you select the image, try pinch zooming the image or rotating it. I believe you can perform either of those actions to crop the image to a specific area of the image. I have verified that the pinch zooming works but not the rotation, but believe the latter should be possible too. That’s how you edit the image and since that is possible, that is why you get the edited version of the image from the picker since the user can (possibly) want only a part of the original image in the app.

Many thanks, fahim. Yes, I can replicate the pinch for scaling.

This topic was automatically closed after 166 days. New replies are no longer allowed.