Get Dimension

This function block retrieves the dimensions of an input image and outputs them as a list. It's particularly useful for analyzing image properties within a workflow.

📥 Inputs

Image Any An image whose dimensions you wish to obtain.

📤 Outputs

Dimensions This output provides the height, width, and color channels of the input image as numerical values in a list.

🎨 Features

Dimension Retrieval Allows users to quickly access the dimensions of any input image, facilitating further processing based on image size.

📝 Usage Instructions

  1. Input Image: Connect the image block (or any block producing an image) to the Image Any input.

  2. Evaluate: Trigger the block to evaluate and retrieve the dimensions.

  3. Access Dimensions: The output will provide a list of dimension values, which typically include the height, width, and number of color channels.

📊 Evaluation

When the block executes, it returns the height and width of the input image, enabling users to make informed decisions based on the image properties.

💡 Tips and Tricks

Using with Other Blocks

This function block can be effectively used in conjunction with Image Resize and Image AutoRotator to adapt processing based on the actual input image size.

Result Validation

Consider combining this block with Is None to check if the input image is valid before processing, ensuring efficient and error-free workflows.

🛠️ Troubleshooting

No Output Dimensions

If you find that dimensions are not being provided, ensure that the input image is valid and that its format is compatible with the function block.

Last updated