From d7e0cb90898ac1aacfbe600f6dd1d8137185791a Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 25 May 2022 17:28:03 +0100 Subject: [PATCH] Changed scaling method --- combineImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combineImg.py b/combineImg.py index 4d9a26b..d9181ab 100644 --- a/combineImg.py +++ b/combineImg.py @@ -82,7 +82,7 @@ def genImage(imageArray): combinedBG = combineImages(imageArray, *getTotalImgSize(imageArray),False) combinedBG = blurImage(combinedBG,50) finalImg = Image.alpha_composite(combinedBG,combined) - finalImg = ImageOps.pad(finalImg, imageArray[0].size,color=(0, 0, 0, 0)) + finalImg = ImageOps.pad(finalImg, findImageWithMostPixels(imageArray).size,color=(0, 0, 0, 0)) return finalImg def genImageFromURL(urlArray):