GPUImage2 icon indicating copy to clipboard operation
GPUImage2 copied to clipboard

Transparency Issue with All Filters

Open kerbelda opened this issue 6 years ago • 2 comments

Hi, very excited to use the framework but I'm running into an issue. I'm using AVPortraitEffectsMatte to generate a "cutout" of a picture. It uses the CIFilter below

maskCode

Then I apply a filter like such:

filteringCode

The cutout works great but when I go to add a simple filter like Brightness, the background no longer stays transparent, as seen with the images below. I've tried using a UIImageView as well as a RenderView.

Before: before

After: after

Is there anything I can do on either end (masking or adding filters) to keep that transparency? I'm planning to do some real time filtering as well as one time outputs. Edit: This also happens with any PNG photo that has a transparency.

kerbelda avatar Jul 29 '19 18:07 kerbelda

https://github.com/BradLarson/GPUImage2/issues/298#issuecomment-488699644

deshan avatar Aug 13 '19 07:08 deshan