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 > Sage Utils > Crop Image

ComfyUI Node: Crop Image

Class Name

Sage_CropImage

Category
Sage Utils/image
Author
arcum42 (Account age: 6442days)
Extension
Sage Utils
Latest Updated
2026-05-17
Github Stars
0.03K

How to Install Sage Utils

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

Crop Image Description

Facilitates precise image cropping by defining specific margins in a node-based workflow.

Crop Image:

The Sage_CropImage node is designed to facilitate the precise cropping of images within a node-based workflow. This node allows you to define specific margins from the left, top, right, and bottom of an image, effectively trimming the image to your desired dimensions. The primary benefit of using this node is its ability to handle image cropping with precision, ensuring that the resulting image remains within the bounds of the original dimensions. This is particularly useful for AI artists who need to focus on specific areas of an image or remove unwanted sections without altering the overall composition. The node's functionality is built to accommodate various image sizes and shapes, making it a versatile tool in image processing tasks.

Crop Image Input Parameters:

image

The image parameter is the input image that you wish to crop. It serves as the base from which the cropping operation will be performed. This parameter is crucial as it determines the source material for the cropping process. The image should be in a compatible format that the node can process.

left

The left parameter specifies the number of pixels to crop from the left side of the image. It allows you to define how much of the image's left margin should be removed. The minimum value is 0, ensuring no negative cropping, and there is no explicit maximum value, but it should not exceed the image's width.

top

The top parameter indicates the number of pixels to crop from the top of the image. This parameter helps in removing unwanted portions from the top margin. Similar to the left parameter, the minimum value is 0, and it should not exceed the image's height.

The right parameter defines the number of pixels to crop from the right side of the image. It is used to trim the right margin of the image. The minimum value is 0, and it should be set such that the sum of left and right does not exceed the image's width.

bottom

The bottom parameter specifies the number of pixels to crop from the bottom of the image. This parameter is essential for removing parts of the image from the bottom margin. The minimum value is 0, and it should be set such that the sum of top and bottom does not exceed the image's height.

Crop Image Output Parameters:

cropped_image

The cropped_image is the output parameter that provides the resulting image after the cropping operation. This image reflects the specified cropping margins and retains the original image's quality and format. The cropped image is essential for further processing or analysis, as it represents the focused area of interest defined by the input parameters.

Crop Image Usage Tips:

  • Ensure that the sum of the left and right parameters does not exceed the image's width to avoid errors or unintended results.
  • Similarly, make sure the sum of the top and bottom parameters does not exceed the image's height to maintain the integrity of the cropping operation.
  • Use this node to focus on specific areas of an image, such as removing borders or isolating subjects, to enhance the composition or prepare the image for further processing.

Crop Image Common Errors and Solutions:

Image dimensions exceeded

  • Explanation: This error occurs when the sum of the cropping margins exceeds the dimensions of the image, resulting in an invalid cropping operation.
  • Solution: Adjust the left, top, right, and bottom parameters to ensure their combined values do not exceed the image's width and height.

Invalid image input

  • Explanation: This error arises when the input image is not in a compatible format or is missing.
  • Solution: Verify that the input image is correctly loaded and in a format supported by the node. Ensure the image parameter is not None before executing the node.

Crop Image Related Nodes

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

Crop Image