GPUImage无法使用数据初始化ACVFile :(空) [英] GPUImage failed to init ACVFile with data:(null)

查看:137
本文介绍了GPUImage无法使用数据初始化ACVFile :(空)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我必须说GPUImage是一个出色的框架.但是,当加载我从Photoshop CS6导出的ACV文件时,它给我一个错误,说:无法使用data:(null)初始化ACVFile.事实是,相同的代码可用于其他一些ACV文件,并且该文件肯定具有数据,实际上是64位.

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;

如果我将测试更改为另一个ACV文件,则可以正常运行.不知道出什么问题了.

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

谢谢 MehtaiPhoneApps

Thanks MehtaiPhoneApps

推荐答案

只需添加色调曲线文件 test.acv 的扩展名,您就很好

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

=>更新代码

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

photoImage.image = quickFilteredImage;

这篇关于GPUImage无法使用数据初始化ACVFile :(空)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆