1

All

I have a requirement to Upload a UIImage taken from Photo Gallery or Photo taken from Camera,

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info  
{

UIImage *chosenImage = info[UIImagePickerControllerEditedImage];

NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:chosenImage,@"chosenImage", nil];

UIImage* selectedImage = [userInfo objectForKey:@"chosenImage"]

NSData *imageData = UIImagePNGRepresentation(selectedImage);

}

I am using imageData to upload it on server, I want to know is there any way to reduce the memory size of the UIImage without changing the quality. Please let me know.

Ashok Londhe
  • 1,491
  • 11
  • 29
kiri
  • 1,977
  • 5
  • 27
  • 55
  • The following question is answered in the following [link][1]. [1]: http://stackoverflow.com/questions/487316/reduce-uiimage-size-to-a-manageable-size-reduce-bytes – Piyush Verma May 13 '15 at 10:09
  • 1
    Just noticed you mentioned without changing the quality. – Lefteris May 13 '15 at 10:09

0 Answers0