#Resize image node .. Add a field "Multiple of"

1 messages · Page 1 of 1 (latest)

merry lily
#

i have always a problem when using resize image as input to other nodes, dimensions of the resised image must be a multiple of 8

so i have to manually add some math nodes to calculate the new width and higth
as shown in this picture :

can someone please add a field to the resize node , in which we select a multiplier of 8, 16, 32, 64 ..
so the new_width will be = input_width - ( input_width modulus multiplier )
and the new_higth will be = input_higth - ( input_higth modulus multiplier )

ivory nexus
merry lily
#

i can't find any resize node that can do that in InvokeAi, there was same problem in comfyUI when cascade was released ( because it needs dimensions = multiple of 64 , so they added this feature to lot of resizers

#

it's easy to add to resize

ivory nexus
#

I’m away from computer but there’s a math node that has a multiple of rounder

#

I can find it in a bit - or if you brave the #🪣garbage-bin those folks know the ins and outs like nobody else

merry lily
#

i will search for it .. but it's better if it will be added to resize image node

#

this is all can find in math