mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
bug fix in grid
In case of 6 images 3rd image was also copied to 4th box missing the last image in the grid.
This commit is contained in:
parent
38ed6393fa
commit
59be6c815d
@ -88,10 +88,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user