Reputation: 835
I am capturing an image with the UIImagePickerController, and I use the cameraViewTransform to make it full screen on iPhone 5 so there's no black boxes on the top or bottom.
self.imagePicker.cameraViewTransform = CGAffineTransformMakeScale(1.7125, 1.7125);
When the user takes the photo, this returns an image that is 2448 x 3264 pixels. This is a 1.333 ratio, I need to crop off the sides to make it 1906 x 3264 pixels to fit in my view at a new aspect ratio, and then I want to scale it down to 320 x 548 pixels to make it full screen on the iPhone 5 (but not gigantic).
How is this achieved?
Upvotes: 2
Views: 1635