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.59k stars 283 forks source link

Change canvas size #777

Open CharonM72 opened 2 years ago

CharonM72 commented 2 years ago

A node to change canvas size (extendable with transparency for RGBA, or maybe a color or something for other colorspaces) would be useful.

RunDevelopment commented 2 years ago

Just to clarify: Using Paint.net as an example, you basically want this, right? image

theflyingzamboni commented 2 years ago

This is already (largely) accomplished by Create Border. We should probably expand on what that node can do. Right now it lacks a version to control border sizes independently (like with crop), and the idea of a color-picker for constant color is still unimplemented as well.

CharonM72 commented 2 years ago

Yes, something like that from paint.net. I'm trying to see if it's possible to automate a process I currently do manually for converting a large number of images into a specific aspect ratio and size without loss in quality. Right now it has a lot of the tools needed but it still missing a few. I submitted a somewhat broader but kind of different issue in #798.

simolg commented 1 year ago

"canvas size" is a different method to change the image size:

they are similar methods but not the same!

in many cases "canvas size" is very useful: the destination of the new canvas must be specified in pixels, after setting an anchor, the image is refitted (automatically)

if it comes out it creates edges, if it shrinks it crops (or even a mix of the two)

this feature would be very welcome Thanks again