How to make square that fills with border?

I can scale the photo, or add a border to it.
But how could I make the photo to the square that fills with the border?
Thanks

Hello @filmape,

I’m not quite following what you’re asking for. Can you point to an example that I can see?

I want to add border to make non square photo to square that I can post to instagram. like the border does in VSCO app

So you’re basically wanting to crop the image, and then apply a border to it? You can do that today with the Crop node, and by choosing the type to “Aspect ratio”, and then ratio to 1x1 (square). Does that work for you?

Hi, wanna keep the original image without crop, but fill it with border with colour to be square or specific ratio photos

There’s the “Make Square” node under the Transform category, and then you could add a Matte node ofter that with a color of your choosing. There’s no way to do a specific ratio though.

If you have some JavaScript skills, you could use the Adjust Margins node, and use the “JavaScript Expression” option (Pro only) to make a little formula to decide what the size of the borders should be.