- [Instructor] Nuke has a unique view on resizing images.
It reformats them.
The Reformat node changes the size of images,
but makes it easy to correctly resize them
to the job format.
It actually offers three ways of resizing images
to a format, a scale factor, or a specific size.
Let's add a Reformat node.
I'll select my Read node.
Come over to the Transform tab.
Come down here and select Reformat.
Here are the three types of resizing
and, by default, it'll resize to a format.
You can pick a format from the format list here,
which is a duplicate of the one in the project settings.
So in this particular case,
my image is a 2K Super 35.
It has a one, three, three aspect radio.
That means it's very tall relative to its width.
So let's see what happens if we ask for an HD format.
Boom, it has cut the top and the bottom off.
Now if you'd like to shift the image up and down,
you'd put a Position node here above the Reformat node.
The next type option is a box.
If I say, for example, a width of 600,
it's going to make the image 600 wide,
but preserve the aspect ratio,
so it'll calculate the height for you.
However, if I want to press it into an arbitrary size,
I can enable force this shape
and then type in any number I want.
There, and now it's a 600 by 400,
regardless of the original aspect ratio.
My third option is a scale factor.
So I could say, for example,
I want it to be 0.5 scale.
You can see up here, it's now at 1024 by 778.
Let's go back to the format HD.
So we can look at the next key part, the resize type.
You have several choices on the rule for resizing.
The default rule is the width.
That means it's going to fit the width left and right.
And if your old image is taller,
you're going to lose the top and bottom.
I'll disable the node and you can see that.
So it's actually cropping it top to bottom.
If I set the resize type to height,
it'll protect the height top and bottom
and you will lose the left and right if it's wider.
And if it's narrower like this,
you get the stretchy pixels on the left and right here,
indicating a pillar box.
Fit will scale the smallest side to fill the output.
Fill will scale the longest side to fill your output.
Now watch out for distort.
Distort actually does like a four corner pin.
So you don't lose any of your original image,
but you have, in fact, distorted it.
And the last resize type is, of course, none.
So it doesn't do any resizing.
Basically what it does is a crop of the image.
So this image used to be 2048 by 1556
and now it's 1920 by 1080.
And there are also flip and flop buttons,
in case you want to reorient your image.
The whole idea behind the Reformat node
is to avoid math errors when resizing images
to the show format.