8 lines
308 B
Python
8 lines
308 B
Python
"""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)
|