Photos edited in the Photo app do not show up edited in ALAssetsLibrary
| Originator: | jasongregori | ||
| Number: | rdar://10626996 | Date Originated: | 26-Dec-2011 07:17 PM |
| Status: | Duplicate/10977338 | Resolved: | |
| Product: | iOS | Product Version: | 5.0 |
| Classification: | Bug | Reproducible: | Always |
26-Dec-2011 07:17 PM Jason Gregori:
Summary:
If you edit a photo in the photos app (like crop it smaller), then try to access it with ALAssetsLibrary it returns the original image (not the cropped one).
Steps to Reproduce:
1. Take a photo
2. Crop the photo in the photos app
3. In code get the last image created from ALAssetsLibrary
Here's a code sample:
[[ALAssetsLibrary new] enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos
usingBlock:^(ALAssetsGroup *group, BOOL *stop) {
*stop = YES;
[group setAssetsFilter:[ALAssetsFilter allPhotos]];
[group enumerateAssetsWithOptions:NSEnumerationReverse
usingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) {
*stop = YES;
if (result) {
NSDate *date = [result valueForProperty:ALAssetPropertyDate];
ALAssetRepresentation *r = [result defaultRepresentation];
if (date && r) {
UIImage *image = [UIImage imageWithCGImage:r.fullResolutionImage scale:r.scale orientation:(UIImageOrientation)r.orientation];
if (image) {
block(date, image);
}
}
}
}];
} failureBlock:nil];
Expected Results:
I would expect the image returned to be cropped like I did in the photos app.
Actual Results:
I get the original image back (from before I cropped it).
Regression:
I don't know any way around this.
-----------
17-Jan-2012 12:16 PM Apple Developer Bug Reporting Team :
Engineering has provided the following feedback regarding this issue:
You can use fullscreenImage to get to the edited/adjusted image.
-----------
19-Jan-2012 05:05 PM Jason Gregori:
Hi,
fullScreenImage is a good temporary solution. Is this the permanent solution or will fullResolutionImage be fixed later? The problem being that I'd like a larger image than fullScreenImage provides.
-----------
17-Apr-2012 10:23 AM Apple Developer Bug Reporting Team :
This bug has been closed as Duplicate. We are aware of this issue and tracking it under the Bug ID listed below in the Related Problem section of your bug report. To check the status of the original bug report, please update your report directly <http://bugreport.apple.com> and we will provide you with any available information.
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!