tags:

views:

392

answers:

2

I have taken the image from UIImagePickerController, but the file looks too big to be transfered through internet, I'd like to resize the images. I couldn't find any method related to the image process. Any recommendation?

Thanks.

+5  A: 

You could create a context of the desired size using UIGraphicsBeginImageContext(), then draw the image to the context using UIImage's -drawInRect: method, and finally use UIGraphicsGetImageFromCurrentImageContext() to pull a new UIImage back out.

Ben Gottlieb
A: 

Cool, thanks!

BlueDolphin