pil patches

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-05-16 08:32:45 +02:00
parent 15de3307c6
commit ce726bf084
4 changed files with 6 additions and 6 deletions
@@ -59,9 +59,9 @@ def save_image(image_numpy, image_path, aspect_ratio=1.0):
# h, w, _ = image_numpy.shape
#
# if aspect_ratio > 1.0:
# image_pil = image_pil.resize((h, int(w * aspect_ratio)), Image.BICUBIC)
# image_pil = image_pil.resize((h, int(w * aspect_ratio)), Image.Resampling.BICUBIC)
# if aspect_ratio < 1.0:
# image_pil = image_pil.resize((int(h / aspect_ratio), w), Image.BICUBIC)
# image_pil = image_pil.resize((int(h / aspect_ratio), w), Image.Resampling.BICUBIC)
image_pil.save(image_path)