Using CoreImage to filter an image results in image rotation
问题 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 information during the process and ends up rotated by 90 degrees. Here is the code: CIContext *context = [CIContext contextWithOptions:nil]; CIImage *img = [CIImage imageWithCGImage:imageView.image.CGImage]; CIFilter *adjustFilter = [CIFilter filterWithName:@"CIHighlightShadowAdjust"]; [adjustFilter setDefaults]; [adjustFilter