Re-scale image down
This commit is contained in:
parent
b457760fae
commit
55ea554357
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue