invoke-ai / invoke-ai/InvokeAI

[enhancement]: "Resize image" node .. Add a field "Multiple of"

Open
#6,148 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
28.2k
Forks
3k
Avg merge
6d 5h
Merged PRs (30d)
19

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Contact Details

angelo.theshredder@gmail.com

### What should this feature add?

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
![2024-04-04_235853](https://github.com/invoke-ai/InvokeAI/assets/52110838/63b68384-618c-417d-91c6-73cfceb14dca)

so i have to manually add some math nodes to calculate the new width and higth
as shown in this picture :
![2024-04-04_235815](https://github.com/invoke-ai/InvokeAI/assets/52110838/d3e9339f-69d8-40ef-a5a1-508c862f5dfc)

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 )

### Alternatives

![multiple 2024-04-05_003912 copy](https://github.com/invoke-ai/InvokeAI/assets/52110838/a48a536d-3846-449b-a8f3-cf25aced5216)

### Additional Content

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.