Merge pull request #166 from SMUsamaShah/patch-1

Bug fix in grid
This commit is contained in:
Lincoln Stein
2022-08-29 13:39:50 -04:00
committed by GitHub

View File

@ -90,10 +90,11 @@ class PngWriter:
height = image_list[0].height height = image_list[0].height
grid_img = Image.new('RGB', (width * cols, height * rows)) grid_img = Image.new('RGB', (width * cols, height * rows))
i = 0
for r in range(0, rows): for r in range(0, rows):
for c in range(0, cols): for c in range(0, cols):
i = r * rows + c
grid_img.paste(image_list[i], (c * width, r * height)) grid_img.paste(image_list[i], (c * width, r * height))
i = i + 1
return grid_img return grid_img