Revert "Quick fix for small images"

This reverts commit 4b5b1936579cc0c7c87d5dfe523de30277c56101.
This commit is contained in:
Dylan 2023-06-30 18:29:54 +01:00
parent 7d6538d31e
commit d311943325

View File

@ -69,8 +69,7 @@ def combineImages(imageArray, totalWidth, totalHeight,pad=True):
x += image.size[0]
y += imageArray[0].size[1]
x = 0
# paste the final image so that it's centered
newImage.paste(imageArray[2], (int((totalWidth - imageArray[2].size[0]) / 2), y))
newImage.paste(imageArray[2], (x, y))
elif (len(imageArray) == 4): # if there are four images, combine the first two horizontally, then combine the last two vertically
for image in imageArray[0:2]:
newImage.paste(image, (x, y))