aboutsummaryrefslogtreecommitdiff
path: root/modules/images.py
diff options
context:
space:
mode:
authorAlUlkesh <99896447+AlUlkesh@users.noreply.github.com>2022-12-28 22:18:19 +0100
committerAlUlkesh <99896447+AlUlkesh@users.noreply.github.com>2023-01-01 11:21:50 +0100
commit5f12b23b8bb7fca585a3a1e844881d06f171364e (patch)
treeb015c2c8959b4fd3c5d33c6877fbf25cf2a07e88 /modules/images.py
parent4af3ca5393151d61363c30eef4965e694eeac15e (diff)
Adding image numbers on grids
New grid option in settings enables adding of image numbers on grids. This makes identifying the images, especially in larger batches, much easier. Revert "Adding image numbers on grids" This reverts commit 3530c283b4b1d3a3cab40efbffe4cf2697938b6f. Implements Callback for image grid loop Necessary to make "Add image's number to its picture in the grid" extension possible.
Diffstat (limited to 'modules/images.py')
-rw-r--r--modules/images.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/images.py b/modules/images.py
index 31d4528d..5afd3891 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -43,6 +43,7 @@ def image_grid(imgs, batch_size=1, rows=None):
grid = Image.new('RGB', size=(cols * w, rows * h), color='black')
for i, img in enumerate(imgs):
+ script_callbacks.image_grid_loop_callback(img)
grid.paste(img, box=(i % cols * w, i // cols * h))
return grid