chaiNNer icon indicating copy to clipboard operation
chaiNNer copied to clipboard

Define a new aspect ratio of the canvas

Open simolg opened this issue 8 months ago • 0 comments

Motivation

Starting from an image I want to define an arbitrary appearance of the canvas (4:3, 21:9, 1:1 .. or any other aspect ratio)

Description

The new hypothetical node could adapt the image (without deforming it) to the new appearance they cut automatically the horizontal or vertical edges

start image (in this example 16:9): example_16-9

by setting "4:3" in the new hypothetical node: example_4-3

by setting "21:9" in the new hypothetical node: example_21-9

in practice the new node should choose the best cut to adapt to the new format, if aspect ratio is greater or less than the aspect ratio of the origin, it will choose the side to cutting.

simolg avatar Jun 04 '24 08:06 simolg