Re-scale image down

This commit is contained in:
Dylan 2022-05-25 16:30:51 +01:00
parent b457760fae
commit 55ea554357

View file

@ -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