GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

PNG lose transparency after GPUImageBrightnessFilter

Open lucomim opened this issue 12 years ago • 1 comments

I'm trying to manipulate an UIImage brightness with GPUImageBrightnessFilter with the following code.

GPUImagePicture *source = [[GPUImagePicture alloc] initWithImage:_imgMask smoothlyScaleOutput:YES];
GPUImageBrightnessFilter *brightness = [[GPUImageBrightnessFilter alloc] init];

[source addTarget: brightness];
[brightness addTarget:GPUImageView];

[source processImage];

But the output image is generated without the original transparency. Am I missing something to generate the output image with the original transparency?

lucomim avatar Aug 06 '14 18:08 lucomim

GPUImageViews currently do not support transparency. I need to add this as an option for those views.

This is the same as issue #315, so I'll close it as a duplicate of that.

BradLarson avatar Aug 06 '14 18:08 BradLarson