Image Resize (rgthree)
rgthree
Image Resize (rgthree)Resize the image.
Example
JSON Example
{
"class_type": "Image Resize (rgthree)",
"inputs": {
"image": [
"node_id",
0
],
"measurement": "pixels",
"width": 0,
"height": 0,
"fit": "crop",
"method": "nearest-exact"
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
image | IMAGE | required | - | - |
measurement | ENUM2 options
| required | - | - |
width? | INT | required | min: 0, max: 16384, step: 1 | 0 |
height | INT | required | min: 0, max: 16384, step: 1 | 0 |
fit? | ENUM3 options
| required | - | - |
method | ENUM5 options
| required | - | - |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | IMAGE | IMAGE | No | ["{node_id}", 0] |
1 | WIDTH | INT | No | ["{node_id}", 1] |
2 | HEIGHT | INT | No | ["{node_id}", 2] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this Image Resize (rgthree) node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
IMAGE (IMAGE):["5", 0]WIDTH (INT):["5", 1]HEIGHT (INT):["5", 2]
Was this page helpful?