ComfyUI > Nodes > Olm DragCrop for ComfyUI > Olm Crop Info → Values

ComfyUI Node: Olm Crop Info → Values

Class Name

OlmCropInfoInterpreter

Category
image/transform
Author
o-l-l-i (Account age: 3012days)
Extension
Olm DragCrop for ComfyUI
Latest Updated
2025-09-02
Github Stars
0.07K

How to Install Olm DragCrop for ComfyUI

Install this extension via the ComfyUI Manager by searching for Olm DragCrop for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Olm DragCrop for ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Olm Crop Info → Values Description

Converts JSON crop info to structured data for image cropping tasks, simplifying interpretation and integration in workflows.

Olm Crop Info → Values:

The OlmCropInfoInterpreter node is designed to process and interpret crop information provided in JSON format. Its primary function is to extract and convert crop data into a structured format that can be easily utilized for image transformation tasks. This node is particularly beneficial for users who need to handle image cropping operations, as it simplifies the process of interpreting crop boundaries and dimensions. By converting JSON data into a set of numerical values and formatted strings, the node facilitates seamless integration with other image processing workflows. The interpret method is the core of this node, ensuring that the crop data is accurately parsed and returned in a user-friendly format, making it an essential tool for AI artists working with image transformations.

Olm Crop Info → Values Input Parameters:

crop_json

The crop_json parameter is a string that contains the crop information in JSON format. This parameter is crucial as it provides the node with the necessary data to interpret the crop boundaries and dimensions. The JSON string should include keys such as "left", "top", "right", "bottom", "width", and "height", which define the crop area on the image. If the JSON string is empty or malformed, the node will default to using zero values for these parameters. This input does not have specific minimum or maximum values, but it should be a valid JSON string to ensure accurate interpretation.

Olm Crop Info → Values Output Parameters:

left

The left output parameter represents the left boundary of the crop area in pixels. It is derived from the "left" key in the input JSON and indicates the starting horizontal position of the crop.

top

The top output parameter indicates the top boundary of the crop area in pixels. It is extracted from the "top" key in the input JSON and marks the starting vertical position of the crop.

The right output parameter denotes the right boundary of the crop area in pixels. It is calculated based on the "right" key in the input JSON or defaults to the value of left if not provided.

bottom

The bottom output parameter specifies the bottom boundary of the crop area in pixels. It is determined from the "bottom" key in the input JSON or defaults to the value of top if not provided.

width

The width output parameter represents the width of the crop area in pixels. It is calculated as the difference between the right and left boundaries, ensuring a non-negative value.

height

The height output parameter indicates the height of the crop area in pixels. It is computed as the difference between the bottom and top boundaries, ensuring a non-negative value.

csv

The csv output parameter is a string that concatenates the crop boundaries and dimensions into a comma-separated format. This output is useful for logging or exporting crop data in a simple text format.

pretty

The pretty output parameter provides a human-readable string representation of the crop information, formatted with labels for each boundary and dimension. This output is ideal for displaying crop data in a user interface or for debugging purposes.

Olm Crop Info → Values Usage Tips:

  • Ensure that the crop_json input is a well-formed JSON string to avoid defaulting to zero values for crop boundaries and dimensions.
  • Utilize the pretty output for easy visualization and verification of the crop parameters, especially when debugging or presenting data to non-technical stakeholders.

Olm Crop Info → Values Common Errors and Solutions:

Invalid JSON Format

  • Explanation: The crop_json input is not a valid JSON string, which prevents the node from interpreting the crop data correctly.
  • Solution: Verify that the crop_json input is a properly formatted JSON string with all necessary keys and values.

Missing Crop Keys

  • Explanation: The crop_json input lacks one or more of the required keys ("left", "top", "right", "bottom", "width", "height"), leading to default values being used.
  • Solution: Ensure that the crop_json input includes all necessary keys to define the crop area accurately.

Olm Crop Info → Values Related Nodes

Go back to the extension to check out more related nodes.
Olm DragCrop for ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.