minor updates

This commit is contained in:
Vladimir Mandic
2023-12-12 14:36:00 -05:00
parent be1d90c3ed
commit 033569cfb1
8 changed files with 44 additions and 65 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ def grid(images, labels = None, width = 0, height = 0, border = 0, square = Fals
for i, img in enumerate(images): # pylint: disable=redefined-outer-name
x = (i % cols * w) + (i % cols * border)
y = (i // cols * h) + (i // cols * border)
img.thumbnail((w, h), Image.HAMMING)
img.thumbnail((w, h), Image.Resampling.HAMMING)
image.paste(img, box=(x, y))
if labels is not None and len(images) == len(labels):
ctx = ImageDraw.Draw(image)