Update image_nodes.py

removing "and get_image_size is None" to allow cropping even when using get_image_size.
This commit is contained in:
Hogesyx 2025-04-16 14:38:37 +08:00 committed by GitHub
parent 8ecf5cd05e
commit 7d8e7bcd09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2288,7 +2288,7 @@ highest dimension.
if height == 0:
height = H
if divisible_by > 1 and get_image_size is None:
if divisible_by > 1:
width = width - (width % divisible_by)
height = height - (height % divisible_by)