Permalink
Browse files

Return best version of selected images

  • Loading branch information...
1 parent b5357fa commit 1220a47aa875b71d9a6217b00ed7f0f31b16b29e @brutella committed Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/ELCImagePickerController.m
View
2 Classes/ELCImagePickerController.m
@@ -30,7 +30,7 @@ -(void)selectedAssets:(NSArray*)_assets {
NSMutableDictionary *workingDictionary = [[NSMutableDictionary alloc] init];
[workingDictionary setObject:[asset valueForProperty:ALAssetPropertyType] forKey:@"UIImagePickerControllerMediaType"];
- [workingDictionary setObject:[UIImage imageWithCGImage:[[asset defaultRepresentation] fullScreenImage]] forKey:@"UIImagePickerControllerOriginalImage"];
+ [workingDictionary setObject:[UIImage imageWithCGImage:[[asset defaultRepresentation] fullResolutionImage]] forKey:@"UIImagePickerControllerOriginalImage"];
[workingDictionary setObject:[[asset valueForProperty:ALAssetPropertyURLs] valueForKey:[[[asset valueForProperty:ALAssetPropertyURLs] allKeys] objectAtIndex:0]] forKey:@"UIImagePickerControllerReferenceURL"];
[returnArray addObject:workingDictionary];

0 comments on commit 1220a47

Please sign in to comment.