-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize image to square (1:1 ratio) while retaining original image aspect ratio #3083
Comments
Use the math node to get the maximum value of the height and width, which you can get using the get dimensions node. Then use another math node to get the difference between each dimension and its max, then the pad node to pad each dimension with the result. That should do it There may be a better way to do this but at least that'll work |
That would be after a regular resize of course -- for that the easiest way would be using the resize to side node if you want the largest dimension to become 458 no matter which side |
I've been trying to get a specific resize result using chaiNNer but I'm having trouble making it work.
I've left an example of what I'm trying to accomplish in the attachment
Any help is appreciated.
The text was updated successfully, but these errors were encountered: