File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,16 +66,7 @@ + (void)loadImageWithTag:(NSString *)imageTag representation:(NSString *)rep cal
6666 @autoreleasepool {
6767 ALAssetRepresentation *representation = [asset defaultRepresentation ];
6868 ALAssetOrientation orientation = [representation orientation ];
69- UIImage *image;
70-
71- if ( [rep isEqualToString: @" screen" ] ){
72- image = [UIImage imageWithCGImage: [representation fullScreenImage ] scale: 1 .0f orientation: (UIImageOrientation)orientation];
73- }else if ( [rep isEqualToString: @" thumbnail" ] ){
74- image = [UIImage imageWithCGImage: [asset thumbnail ] scale: 1 .0f orientation: (UIImageOrientation)orientation];
75- }else {
76- image = [UIImage imageWithCGImage: [representation fullResolutionImage ] scale: 1 .0f orientation: (UIImageOrientation)orientation];
77- }
78-
69+ UIImage *image = [UIImage imageWithCGImage: [representation fullResolutionImage ] scale: 1 .0f orientation: (UIImageOrientation)orientation];
7970 dispatch_async (dispatch_get_main_queue (), ^{
8071 callback (nil , image);
8172 });
You can’t perform that action at this time.
0 commit comments