dmitric / DLCImagePickerController

ImagePickerController with live filters, radial blur and more. Brought to you by Backspaces.

Home Page:www.backspac.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get the filtered image back

khose opened this issue · comments

Hello!

Just send a tweet asking this question. I'm working in an app that uses the picker to apply some filters to an image. What I want to do is to let the user save the filtered image afterwards. But I don't know how to extract the image from the GL Surface. Is it possible to generate an UIImage from the filtered one?

GPUImagePicture inherits from GPUImageOutput and checking its code:

- (UIImage *)imageFromCurrentlyProcessedOutputWithOrientation:(UIImageOrientation)imageOrientation;
{
    return nil;
}

- (UIImage *)imageByFilteringImage:(UIImage *)imageToFilter;
{
    return nil;
}

- (CGImageRef)newCGImageFromCurrentlyProcessedOutputWithOrientation:(UIImageOrientation)imageOrientation;
{
    return nil;
}

- (CGImageRef)newCGImageByFilteringImage:(UIImage *)imageToFilter;
{
    return nil;
}

It seems that is not possible, with this implementation...

Thanks!

Look at the code in the sample project. It does all of this. It has the same delegate protocol as the regular camera picker.

Thanks I found the method. It's like processing a video image....shame on me :)

Thanks again!