Changed scaling method

This commit is contained in:
Dylan 2022-05-25 17:28:03 +01:00
parent 55ea554357
commit d7e0cb9089

View file

@ -82,7 +82,7 @@ def genImage(imageArray):
combinedBG = combineImages(imageArray, *getTotalImgSize(imageArray),False) combinedBG = combineImages(imageArray, *getTotalImgSize(imageArray),False)
combinedBG = blurImage(combinedBG,50) combinedBG = blurImage(combinedBG,50)
finalImg = Image.alpha_composite(combinedBG,combined) 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 return finalImg
def genImageFromURL(urlArray): def genImageFromURL(urlArray):