Folks,
I have been unsuccessfully trying to get this code to work with images taken by the camera on an iPhone 4G:
iPhone - CGImageCreateWithImageInRect rotating some camera roll pictures
This code works great for cropping "normal" images - images I have downloaded off of the internet or images that were taken by my iPhone 3G.
iPhone 4G camera photos appear to be getting cropped in totally random parts of the image after when that rotation code is called.
I even tried using this code: Resizing UIimages pulled from the Camera also ROTATES the UIimage?
And I "resized" the image to the same dimensions it had in order to achieve the rotation, then attempted to crop the image without taking rotation into account. No luck either.
Is there any way I can take an image captured on the iPhone 4G camera and convert it into an image that has the same qualities/properties as an image downloaded off of the internet (ie, has no rotation information and/or its pixels are rotated properly from the outset), so that subsequent operations I attempt to perform (in this case cropping) will work as I expect?
Thanks!