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):