I'm getting an edited image from UIImagePickerController
. On retina iOS devices, the image returned is 640x640, but on non-retina iOS devices, the image returned is only 320x320.
How do I get 640x640 from the controller on non-retina devices without manually upscaling? I need the sizes to be constant regardless of the screen because I am uploading it.
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
UIImage *image = info[UIImagePickerControllerEditedImage];
//image.size is 320x320 points on both retina and non-retina devices.
//How do I get 640x640 *pixels* for non-retina devices without upscaling?
}