How to speed up saving a UIImagePickerController image from the camera to the filesystem via UIImagePNGRepresentation()?

Posted by kazuhito0000 on Stack Overflow See other posts from Stack Overflow or by kazuhito0000
Published on 2011-10-04T17:17:05Z Indexed on 2012/11/07 23:01 UTC
Read the original article Hit count: 165

I'm making an applications that let users take a photo and show them both in thumbnail and photo viewer. I have NSManagedObject class called photo and photo has a method that takes UIImage and converts it to PNG using UIImagePNGRepresentation() and saves it to filesystem. After this operation, resize the image to thumbnail size and save it.

The problem here is UIImagePNGRepresentation() and conversion of image size seems to be really slow and I don't know if this is a right way to do it.

Tell me if anyone know the best way to accomplish what I want to do.

Thank you in advance.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios