Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > comfyui-obvpm > Load Image & Crop (obvpm)

ComfyUI Node: Load Image & Crop (obvpm)

Class Name

LoadImageCrop (obvpm)

Category
obvpm/image
Author
chanon (Account age: 5883days)
Extension
comfyui-obvpm
Latest Updated
2026-09-17
Github Stars
0.04K

How to Install comfyui-obvpm

Install this extension via the ComfyUI Manager by searching for comfyui-obvpm
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui-obvpm 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

Load Image & Crop (obvpm) Description

Facilitates interactive image cropping with scaling and performance optimization for AI artists.

LoadImageCrop (obvpm):

The LoadImageCrop node is designed to facilitate the loading and interactive cropping of images within a user-friendly interface. This node allows you to select an image and define a specific area to crop by dragging and resizing a rectangle over the image preview. This interactive feature is particularly beneficial for AI artists who wish to focus on specific parts of an image without needing to manually edit coordinates or dimensions. The node also offers the capability to scale down the cropped image to fit within a specified maximum megapixel limit, ensuring that the output is optimized for performance while maintaining the desired aspect ratio. This functionality is especially useful when working with high-resolution images, as it helps manage file sizes and processing times effectively.

LoadImageCrop (obvpm) Input Parameters:

image

This parameter represents the image file you wish to load and crop. You can upload a new image, drag and drop an existing file, or select from previously used images. The image serves as the primary input for the node, and its quality and resolution will directly impact the final output.

crop

The crop parameter is managed by the crop editor on the node and is stored as a JSON string with normalized coordinates. It defines the area of the image to be cropped. By default, this is an empty string, indicating no crop is applied. This parameter allows you to focus on specific parts of the image, enhancing the precision of your work.

max_megapixels

This parameter controls the maximum size of the output image in megapixels. If the cropped area exceeds this limit, the image is downscaled to fit within the specified megapixels, preserving the aspect ratio. The default value is 0.0, which disables downscaling. The range is from 0.0 to 128.0, allowing flexibility in managing image size and quality.

aspect

The aspect parameter allows you to pin the crop rectangle to a fixed aspect ratio, ensuring that any drawing or resizing maintains the specified shape. The default setting is "free," which provides an unconstrained editing experience. This parameter is crucial for maintaining consistency in image dimensions, especially when preparing images for specific formats or presentations.

LoadImageCrop (obvpm) Output Parameters:

image

The image output is the loaded and cropped image, processed according to the specified parameters. If a crop area is defined, the output will reflect this selection, and if max_megapixels is set, the image will be scaled down accordingly. This output is essential for obtaining the desired section of the image in the appropriate size and resolution.

mask

The mask output is derived from the image's alpha channel, cropped and scaled in the same manner as the image. This mask is useful for applications that require transparency information or when further processing of the image is needed, such as in compositing or layering tasks.

LoadImageCrop (obvpm) Usage Tips:

  • Utilize the interactive crop feature to precisely select the area of interest in your image, which can significantly enhance the focus and impact of your work.
  • Set the max_megapixels parameter to manage the output size effectively, especially when dealing with high-resolution images, to ensure optimal performance and manageable file sizes.
  • Experiment with different aspect ratios to maintain consistency across multiple images, which is particularly useful for creating uniform outputs for presentations or galleries.

LoadImageCrop (obvpm) Common Errors and Solutions:

ValueError: Load Image & Crop: the stored crop is %dx%d, which is not %s.

  • Explanation: This error occurs when the stored crop dimensions do not match the specified aspect ratio, indicating a mismatch between the crop and aspect settings.
  • Solution: Redraw the crop with the correct aspect ratio set, or switch the aspect parameter back to "free" to allow for an unconstrained crop.

OSError: Invalid image path

  • Explanation: This error indicates that the specified image path is invalid or the image file cannot be found.
  • Solution: Ensure that the image path is correct and that the file exists in the specified location. Double-check the file name and extension for any typos.

Load Image & Crop (obvpm) Related Nodes

Go back to the extension to check out more related nodes.
comfyui-obvpm
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.

Load Image & Crop (obvpm)