title: Photo Library Image URL "assets-library://asset/asset.JPG?id=1000000007&ext=JPG" is nil
body: <p>I want to get Image URL from Photo gallery of iPad.   </p>
  
  <p>When I am trying to get <strong>UIImagePickerControllerReferenceURL</strong> from info of Image Piicker<br>
  I am getting URL as   : </p>
  
  <pre><code> assets-library://asset/asset.JPG?id=1000000007&amp;ext=JPG
  </code></pre>
  
  <p>Because I want to get Image Metadata <code>(image height,width and size in MB)</code> without loading into memory.</p>
  
  <p>I tried below code:</p>
  
  <pre><code> -(void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info
      {
          NSURL *mediaURL;
          mediaURL=(NSURL*)[info valueForKey:UIImagePickerControllerMediaURL];
          NSURL *imageFileURL = (NSURL*)[info valueForKey:UIImagePickerControllerReferenceURL];
  
          NSLog(@" referenURL %@  mediaURL %@" ,imageFileURL,mediaURL);
  
          //We can get Image property from imagepath.
          //NSURL *imageFileURL = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/%@",_directoryPath,roomImageNames[i]]];
          CGImageSourceRef imageSource = CGImageSourceCreateWithURL((__bridge CFURLRef)imageFileURL, NULL);
          NSDictionary *properties = (__bridge_transfer NSDictionary *)CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);
  
          CGFloat height = [[properties objectForKey:@"PixelHeight"] floatValue];
          CGFloat width = [[properties objectForKey:@"PixelWidth"] floatValue];
          NSLog(@"height %f  width  %f",height ,width);
  }
  </code></pre>
  
  <p>I am getting image height and width as 0.0</p>
  
  <p>Let me know if i am doing anything wrong.</p>