Thanks for reading.
I\'m trying to use CoreImage in iOS 5 to alter the appearance of an image. The problem is that the existing image appears to lose its orientation
Have a look at this answer https://stackoverflow.com/q/538064/871102
You can solve your problem passing the image to the method of the previous answer. So instead of:
CIImage *img = [CIImage imageWithCGImage:imageView.image.CGImage];
write:
UIImage *fixedImage = [self scaleAndRotateImage:imageView.image];
CIImage *img = [CIImage imageWithCGImage:fixedImage.CGImage];
UPDATE:
There is a more elegant answer without image scaling here: iOS UIImagePickerController result image orientation after upload.