Tudo: Primeiro commit
This commit is contained in:
commit
06a90928dc
4633 files changed
+6327263
No files matched your search
@@ -0,0 +1,7 @@
|
||||
"""Compõe render RGBA (com sombra do shadow catcher) sobre a foto de fundo."""
|
||||
import sys
|
||||
from PIL import Image
|
||||
fg, bgp, out = sys.argv[1:4]
|
||||
f = Image.open(fg).convert("RGBA")
|
||||
b = Image.open(bgp).convert("RGBA").resize(f.size, Image.LANCZOS)
|
||||
Image.alpha_composite(b, f).convert("RGB").save(out, quality=95)
|
||||
Reference in new issue
Block a user