Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve .png transparency? #62

Open
aaronyih1 opened this issue Jul 31, 2020 · 0 comments
Open

Preserve .png transparency? #62

aaronyih1 opened this issue Jul 31, 2020 · 0 comments

Comments

@aaronyih1
Copy link

aaronyih1 commented Jul 31, 2020

My input images are pngs with a transparent background. When running morpher.py with python facemorpher/morpher.py --src=taylor.png --dest=kim.png --out_frames=kimtaylortransp --background=average --plot, the output produces pngs with a white background rather than a transparent one.
frame001
Since the --background=transparent flag produces a transparent background around the end result, I thought it would be possible to export the --background=averaged resulting png with a transparent background as well like the input image:
taylor

After playing around with the source code, I've found it more difficult than I thought it would be. Can anyone smarter than me think of a way to preserve .png transparency from input to output with the average effect on both the face but also the background?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant