You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by lo...@apache.org on 2013/04/26 01:37:28 UTC

[2/3] ios commit: [CB-2896] writing data to object through CGImageDestinationRef, enables multipart exif tag writing

[CB-2896] writing data to object through CGImageDestinationRef, enables multipart exif tag writing


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/6dc1d973
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/6dc1d973
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/6dc1d973

Branch: refs/heads/master
Commit: 6dc1d973246850153939b436cd7d07b321c3a089
Parents: 20a8b96
Author: lorinbeer <lo...@adobe.com>
Authored: Thu Apr 25 16:18:19 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Thu Apr 25 16:29:32 2013 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVCamera.m |   26 +-------------------------
 1 files changed, 1 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/6dc1d973/CordovaLib/Classes/CDVCamera.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCamera.m b/CordovaLib/Classes/CDVCamera.m
index ffad907..f146d46 100644
--- a/CordovaLib/Classes/CDVCamera.m
+++ b/CordovaLib/Classes/CDVCamera.m
@@ -323,29 +323,8 @@ static NSSet* org_apache_cordova_validArrowDirections;
                     if (EXIFDictionary)	{
                         [self.metadata setObject:EXIFDictionary forKey:(NSString *)kCGImagePropertyExifDictionary];
                     }
-                    
-                    //[[self locationManager] startUpdatingLocation];
                 }
-                /*
-                else {
-                    NSURL *url = [info objectForKey:UIImagePickerControllerReferenceURL];
-                    if (url) {
-                        void (^retreiveAssetMetadata)(ALAsset *) = ^(ALAsset *asset) {
-                            self.metadata = [[NSMutableDictionary alloc] init];
-                            
-                            NSMutableDictionary *EXIFDictionary = [[asset.defaultRepresentation.metadata objectForKey:(NSString *)kCGImagePropertyExifDictionary]mutableCopy];
-                            NSMutableDictionary *GPSDictionary = [[asset.defaultRepresentation.metadata objectForKey:(NSString *)kCGImagePropertyGPSDictionary]mutableCopy];
-                            if (EXIFDictionary)	[self.metadata setObject:EXIFDictionary forKey:(NSString *)kCGImagePropertyExifDictionary];
-                            if (GPSDictionary)	[self.metadata setObject:GPSDictionary forKey:(NSString *)kCGImagePropertyGPSDictionary];
-                            
-                       //     [self imagePickerControllerReturnImageResult];
-                        };
-                        
-                        ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
-                        [library assetForURL:url resultBlock:retreiveAssetMetadata failureBlock:^(NSError *error) {}];
-                    }
-                }
-                 */
+
                 CGImageSourceRef sourceImage = CGImageSourceCreateWithData((__bridge_retained CFDataRef)data, NULL);
 				CFStringRef sourceType = CGImageSourceGetType(sourceImage);
                 
@@ -356,9 +335,6 @@ static NSSet* org_apache_cordova_validArrowDirections;
 				CFRelease(sourceImage);
 				CFRelease(destinationImage);
             }
-//            [self imagePickerControllerReturnImageResult];
-                
-
             
             if (cameraPicker.saveToPhotoAlbum) {
                 UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:data], nil, nil, nil);