Uploading Pngs, makes the background white
I'm working on a lens I haven't seen anyone else make before. It would allow the user to pick a photo from the camera roll with a transparent background to use as part of my filter (this is not a camera roll uploader btw). The problem I'm having is when someone uses an image with a transparent background in the filter it removes the transparency and puts in a white background as seen below. It would be great if you could help me out with this! I put an example of uploading a png below
I would say to check if it's transparent in filed first, and if it is make sure it's a png and not a jpg because if it's a jpg it'll do that (from experience). If you want to make it transparent again you can use pixlr.com, it's free and works well!
So it is a png, and on my phone's camera roll shows it as a png. The problem is when I scroll through the camera roll selector in the lens the background is no longer transparent and is now filled in with white. So when I click on the png to use in the lens the background shows up white. Now this only works on the phone because when I upload the same photo in the phone simulator in lens studio it comes up transparent.
Hi Ryan,
Are you able to use the transparency in other apps? I believe some phones may automatically remove transparency. In the camera roll selector, if you edit the image, you see the transparency?
One thing to possibly consider is to use Material Editor to create a material which can create a mask out of certain colors so that it is transparent and allow the user to select which areas will be transparent.
Additionally, you can also try using blend modes. For example, using a screen or add blend mode on the image will allow that butterfly image to blend in better with the skin as well as remove the white color.
Let me know if you need any clarification.
Thank you,
Jonathan
I've figured out that it is the phone that stops the transparency if you aren't looking at in the camera roll. I have tried the screen and blend mode which did not work too well. I am trying to learn material editor but I am not sure how to mask out white from all photos that will be uploaded.