GPUImage failed to init ACVFile with data:(null)

为君一笑 提交于 2020-01-17 01:39:23

问题


First of all, I must say that GPUImage is an excellent framework. However, when loading an ACV file that I export from Photoshop CS6, it gives me an error saying that: failed to init ACVFile with data:(null). The thing is though, that the same code works for some other ACV files, and the file definitely has data, 64 bites of it in fact.

Here is how I am trying to load it:

GPUImageToneCurveFilter *stillImageFilter2 = [[GPUImageToneCurveFilter alloc] initWithACV:@"test"];
    UIImage *quickFilteredImage = [stillImageFilter2 imageByFilteringImage:baseImage];
    
    photoImage.image = quickFilteredImage;

If I change test to another ACV file, it works perfectly. Not sure what is wrong.

Thanks MehtaiPhoneApps


回答1:


just add the extension of tone curve file test.acv and you are good to go

=> updated code

GPUImageToneCurveFilter *stillImageFilter2 = [[GPUImageToneCurveFilter alloc] initWithACV:@"test.acv"];
UIImage *quickFilteredImage = [stillImageFilter2 imageByFilteringImage:baseImage];

photoImage.image = quickFilteredImage;


来源:https://stackoverflow.com/questions/28595445/gpuimage-failed-to-init-acvfile-with-datanull

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