ComfyUI Node
Load Image with Metadata Crop
Loads an image with metadata and optionally crops a region, returning both the cropped and original images plus a zoom factor.
Load Image with Metadata Crop
- cropped_image
- mask
- original_image
- prompt
- Metadata RAW
- BASE_FILENAME
- BASE_DIR
- crop_x
- crop_y
- crop_width
- crop_height
- height
- width
- original_height
- original_width
- zoom_factor
- megapixels
◄folder_typeinput►
◄image▾►
◄crop_x-1►
◄crop_y-1►
◄crop_width-1►
◄crop_height-1►
Category🎨 DockerCPU API/Utilities
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_type | COMBO | input | Which ComfyUI folder to load from. The image dropdown is refreshed automatically. |
| image | COMBO | 1 options: example.png | |
| crop_xopt | INT | -1-1–999999 | Left edge of crop. -1 disables cropping. |
| crop_yopt | INT | -1-1–999999 | Top edge of crop. -1 disables cropping. |
| crop_widthopt | INT | -1-1–999999 | Crop width. -1 disables cropping. |
| crop_heightopt | INT | -1-1–999999 | Crop height. -1 disables cropping. |
Outputs (17)
| Name | Type | Description |
|---|---|---|
| cropped_image | IMAGE | — |
| mask | MASK | — |
| original_image | IMAGE | — |
| prompt | JSON | — |
| Metadata RAW | METADATA_RAW | — |
| BASE_FILENAME | STRING | — |
| BASE_DIR | STRING | — |
| crop_x | INT | — |
| crop_y | INT | — |
| crop_width | INT | — |
| crop_height | INT | — |
| height | INT | — |
| width | INT | — |
| original_height | INT | — |
| original_width | INT | — |
| zoom_factor | FLOAT | — |
| megapixels | FLOAT | — |