Missing orientation information in ALAsset from My Photo Stream
| Originator: | ms | ||
| Number: | rdar://16109848 | Date Originated: | 19.01.2014 06:04:00 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 7.0.4 (11B554a) |
| Classification: | Reproducible: | Always |
I use the ALAsset class to retrieve high resolution images from the image library on the iPhone. I create a new CIImage instance from that ALAsset instance. If the ALAsset is an image from an album on the iPhone the image contains orientation information as provided in the API documentation. If the images is selected from the "My Photo Stream" library there is no orientation information available - the value of the property ALAssetPropertyOrientation is always 0. All images I made tests with were taken with an iPhone and have orientation information if I select them from the Camera Roll or from another album (except "My Photo Stream"). Steps to Reproduce: This small code snippet is from my code: The variable asset is an asset the user has selected from the iPhone's foot library CIImage* originalImage = [[CIImage alloc] initWithCGImage:[[asset representationForUTI:(NSString*)kUTTypeJPEG] fullResolutionImage]]; NSLog(@"Orientation value %d", [[asset valueForProperty:@"ALAssetPropertyOrientation"] intValue]); If an image is selected from the album "My Photo Stream) the orientation value is 0 for all images. If the user selects an image from another album, the value matches the image orientation.
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!