Photos.app Edits Aren't Always Applied to the Image Returned by -[ALAssetRepresentation getBytes:fromOffset:length:error]

Originator:paul
Number:rdar://19222877 Date Originated:12/11/2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8.1.2
Classification:Other Bug Reproducible:Sometimes
 
Summary:
Frequently, the photo returned from -[ALAssetRepresentation fullScreenImage] has Photos.app CIFilters applied, but the photo data returned from -[ALAssetRepresentation getBytes:fromOffset:length:error] does not have the CIFilters applied.

Steps to Reproduce:
1. Edit a photo in Photos.app
2. Open an app that queries ALAssetsLibrary for the fullScreenImage and the full size image that you just edited.
3. Compare and notice that they're different.

Expected Results:
The full screen image and the full size image would have the same filters applied. Or, if the full size image is still processing, the unedited full screen image would be returned.

Actual Results:
The full screen image and the full size image have different sets of filters applied.

Notes:


Configuration:
iPhone 6 and iOS Simulator

Comments

I am facing the same problem.

I'm struggling with this problem too.

Steps to reproduce:

1- Request the ALAssetRepresentation.fullResolutionImage for an ALAsset. 2- Switch to the system application, and apply filters or crop the photo 3- Go back to the test application, and request again fullResolutionImage

The image requested will be the same of point 1 nevermind how much time I keep the application open.

While the fullScreenImage is correctly returned with the updated filters/crop.

By iosdeveloperjob at Jan. 22, 2015, 8:15 a.m. (reply...)

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!