Update preview_images.py

This commit is contained in:
Joachim 2021-05-26 15:46:40 +02:00
parent a8ae3c9950
commit f7b117e4fb

View file

@ -266,7 +266,9 @@ def generate_preview_image(
contents_y = margin
# Composite layers
img.paste(inner_img_layer, (inner_img_x, inner_img_y), inner_img_layer.convert("RGBA"))
img.paste(
inner_img_layer, (inner_img_x, inner_img_y), inner_img_layer.convert("RGBA")
)
img.alpha_composite(contents_layer, (content_x, contents_y))
return img