Skip to content

Nil when filtering image #11

@jvicjvic

Description

@jvicjvic

When filtering an image, instead of a live stream, I'm getting nil. Any ideas on what could be happening? Here's the code:

GPUImagePicture *stillImageSource = [[GPUImagePicture alloc] initWithImage:img];
GPUImageBeautifyFilter * filter = [[GPUImageBeautifyFilter alloc] init];

[stillImageSource addTarget:filter];
[filter useNextFrameForImageCapture];
[stillImageSource processImage];
   
UIImage * result = [filter imageFromCurrentFramebuffer];  // nil

I've also tried using [filter imageByFilteringImage:img], but it's the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions