UIImage needs initWithCIImage:scale:orientation: method
| Originator: | blocksom | ||
| Number: | rdar://10781864 | Date Originated: | 31-Jan-2012 09:50 AM |
| Status: | Open | Resolved: | |
| Product: | Product Version: | ||
| Classification: | Reproducible: |
31-Jan-2012 09:50 AM Jonathan Blocksom: Summary: Orientation metadata gets lost in Core Image and is a pain to get back. A new initializer would help. Steps to Reproduce: Write a program that: * Takes a UIImage * Creates a CIImage from it * Creates a new CIImage by filtering the source CIImage * Puts the output CIImage back into UIImage Try it with an image whose default orientation is not standard (e.g. nonzero imageOrientation property in UIImage). The metadata is lost going through Core Data and the resulting image appears rotated. Expected Results: You should be able to create a new UIImage with metadata from the original. Actual Results: You have to create a CGImage, which is a pain. Notes: UIImage has a handy method for CGImage's, - (id)initWithCGImage:(CGImageRef)imageRef scale:(CGFloat)scale orientation:(UIImageOrientation)orientation It should have one like this for CIImage as well.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!