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.
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.
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.