Skip to main content

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

NameTypeStatusConstraintsDefault
imageIMAGErequired--
measurementENUM
2 options
  • pixels
  • percentage
required--
width?INTrequiredmin: 0, max: 16384, step: 10
heightINTrequiredmin: 0, max: 16384, step: 10
fit?ENUM
3 options
  • crop
  • pad
  • contain
required--
methodENUM
5 options
  • nearest-exact
  • bilinear
  • area
  • bicubic
  • lanczos
required--

Outputs

IndexNameTypeIs ListConnection Reference
0IMAGEIMAGENo["{node_id}", 0]
1WIDTHINTNo["{node_id}", 1]
2HEIGHTINTNo["{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?