chaiNNer-org / chaiNNer

A node-based image processing GUI aimed at making chaining image processing tasks easy and customizable. Born as an AI upscaling application, chaiNNer has grown into an extremely flexible and powerful programmatic image processing application.
https://chaiNNer.app
GNU General Public License v3.0
4.65k stars 283 forks source link

Add `size_as` parameter to `ImageOutput` #2965

Closed RunDevelopment closed 4 months ago

RunDevelopment commented 4 months ago

The new size_as parameter makes it possible to avoid Navi types in more nodes. size_as works the same way as shape_as in that it takes an input ID.

While I haven't done so yet, we can use this for output validation as in the future. Just like ImageOutput uses channels to verify the output image, we could do the same thing with size_as and shape_as. However, we'll need to give enfore more information to actually do that.