From 55ea554357aca026926e1d296fb5ac259458c1d3 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 25 May 2022 16:30:51 +0100 Subject: [PATCH] Re-scale image down --- combineImg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/combineImg.py b/combineImg.py index cf51bba..4d9a26b 100644 --- a/combineImg.py +++ b/combineImg.py @@ -81,7 +81,9 @@ def genImage(imageArray): combined = combineImages(imageArray, *getTotalImgSize(imageArray)) combinedBG = combineImages(imageArray, *getTotalImgSize(imageArray),False) combinedBG = blurImage(combinedBG,50) - return Image.alpha_composite(combinedBG,combined) + finalImg = Image.alpha_composite(combinedBG,combined) + finalImg = ImageOps.pad(finalImg, imageArray[0].size,color=(0, 0, 0, 0)) + return finalImg def genImageFromURL(urlArray): # this method avoids storing the images in disk, instead they're stored in memory