Problem with CGImageDestination and file naming

落爺英雄遲暮 提交于 2019-12-02 06:53:22
Michiel van Liempt

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);
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!