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
commit d483fcb53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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