I need to use image height and width.I have 800*800 pixel image in my ios simulator. But when i am finding the size of image using
image.size.width and image.size.height
it is giving me 315*120 which is incorrect why so?
- (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info
{
NSLog(@"%@",info);
int temp = [[DataManager sharedObj] imageCount];
for(NSDictionary *dict in info)
{
[[DataManager sharedObj] setImageCount:temp+1];
NSMutableDictionary* dataDic = [[NSMutableDictionary alloc] init];
UIImage* img = [dict objectForKey:UIImagePickerControllerOriginalImage];
NSLog(@"%.2f",img.size.width);
NSLog(@"%.2f",img.size.height);
}
}
Try to call
image.frame = cgrectmake(x, y, 800, 800).If you have an
UIImageView *imageinstead ofUIImage *image, problably you get the frame of the view not the image.SOLVED:
change
fullScreenImagetofullResolutionImagein line 33 of yourELCImagePickerController.m.