Advertisement
Joze

F*cking metadata... no GPS info

Dec 5th, 2011
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
  2. {
  3.  
  4.     if([_delegate respondsToSelector:@selector(libraryImageSelectionImage:withId:AndMediaType:AndEXIFData:)])
  5.         [_delegate libraryImageSelectionImage:[info objectForKey:@"UIImagePickerControllerOriginalImage"] withId:[info objectForKey:@"UIImagePickerControllerReferenceURL"] AndMediaType:[info objectForKey:@"UIImagePickerControllerMediaType"] AndEXIFData:nil];
  6.    
  7.     [_pickerImage dismissModalViewControllerAnimated:YES];
  8.    
  9.  
  10. }
  11.  
  12. (gdb) po info
  13. {
  14.     UIImagePickerControllerMediaMetadata =     {
  15.         DPIHeight = 72;
  16.         DPIWidth = 72;
  17.         Orientation = 1;
  18.         "{Exif}" =         {
  19.             ApertureValue = "2.526068811667588";
  20.             BrightnessValue = "2.755607589626643";
  21.             ColorSpace = 1;
  22.             DateTimeDigitized = "2011:12:05 18:08:53";
  23.             DateTimeOriginal = "2011:12:05 18:08:53";
  24.             ExposureMode = 0;
  25.             ExposureProgram = 2;
  26.             ExposureTime = "0.05";
  27.             FNumber = "2.4";
  28.             Flash = 24;
  29.             FocalLenIn35mmFilm = 35;
  30.             FocalLength = "4.28";
  31.             ISOSpeedRatings =             (
  32.                 64
  33.             );
  34.             MeteringMode = 3;
  35.             PixelXDimension = 3264;
  36.             PixelYDimension = 2448;
  37.             SceneType = 1;
  38.             SensingMethod = 2;
  39.             Sharpness = 0;
  40.             ShutterSpeedValue = "4.321928094887363";
  41.             SubjectArea =             (
  42.                 1561,
  43.                 1118,
  44.                 610,
  45.                 612
  46.             );
  47.             WhiteBalance = 0;
  48.         };
  49.         "{TIFF}" =         {
  50.             DateTime = "2011:12:05 18:08:53";
  51.             Make = Apple;
  52.             Model = "iPhone 4S";
  53.             Software = "5.0.1";
  54.             XResolution = 72;
  55.             YResolution = 72;
  56.         };
  57.     };
  58.     UIImagePickerControllerMediaType = "public.image";
  59.     UIImagePickerControllerOriginalImage = "<UIImage: 0x34e110>";
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement