Search code examples
iphoneobjective-cipadipod

How to save Images Quickly


I'm doing video conversion using ffmpeg. I'm getting the sequence of images. Now I am using

[UIImagePNGRepresentation(video.currentImage) writeToFile:fileName atomically:YES];

...to save the file into a directory. But this taking lots of time to save. I need to save this image quickly.


Solution

  • Try With UIImageJPEGRepresentation ( UIImage *image, CGFloat compressionQuality)