I am capturing images from the camera, using AVCapture as I have need of speed and the standard kit stuff is way too slow. I have problem whereby the file that is being output (
AFAIK this is a temporary file that CGImageDestinationFinalize
makes, the reason you see them is that CGImageDestinationFinalize
failed. I think that if you check the file sizes you'll see that the ones with mangled names have a file size of 0.
I started check for succes after I got these files :)
bool success = CGImageDestinationFinalize(destination);
CFRelease(destination);
if (success) {
NSLog(@"animated GIF file created at %@", path);
} else {
NSLog(@"failed to create gif at %@", path);
}