I want to get Image URL from Photo gallery of iPad. 

When I am trying to get **UIImagePickerControllerReferenceURL** from info of Image Piicker  

I am getting URL as : 

```
 assets-library://asset/asset.JPG?id=1000000007&ext=JPG

```

Because I want to get Image Metadata `(image height,width and size in MB)` without loading into memory.

I tried below 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);
}

```

I am getting image height and width as 0.0

Let me know if i am doing anything wrong.