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 > Rebalance-Pack > Image Aspect Ratio Crop

ComfyUI Node: Image Aspect Ratio Crop

Class Name

ImageAspectRatioCrop

Category
Rebalance-Pack/image
Author
nova452 (Account age: 1390days)
Extension
Rebalance-Pack
Latest Updated
2026-07-30
Github Stars
0.47K

How to Install Rebalance-Pack

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

Image Aspect Ratio Crop Description

Crop images while maintaining specified aspect ratio, preserving visual balance and composition with flexible framing and resizing options.

Image Aspect Ratio Crop:

The ImageAspectRatioCrop node is designed to crop images while maintaining a specified aspect ratio. This node is particularly useful for artists and designers who need to ensure that their images conform to specific dimensions without distorting the original content. By focusing on aspect ratios, this node allows you to crop images in a way that preserves the visual balance and composition, which is crucial for maintaining the aesthetic quality of the artwork. The node can be configured to crop images from different positions, such as the center or a specified corner, providing flexibility in how the final image is framed. Additionally, it offers the option to resize the cropped image to a target size, ensuring that the output meets specific resolution requirements. This functionality is essential for preparing images for various platforms or media where specific aspect ratios and resolutions are required.

Image Aspect Ratio Crop Input Parameters:

image

The image parameter is the input image that you want to crop. It serves as the source from which the node will extract a portion based on the specified aspect ratio and crop position. The quality and resolution of the input image can affect the final output, so it's important to use high-quality images for the best results.

aspect_ratios

The aspect_ratios parameter specifies the desired aspect ratio for the cropped image. This can be expressed as a string, such as "16:9" or "4:3", which dictates the proportional relationship between the width and height of the output image. Choosing the correct aspect ratio is crucial for ensuring that the cropped image fits the intended display or print format.

crop_position

The crop_position parameter determines the starting point for the crop operation. It can be set to values like "center", "top-left", "bottom-right", etc., allowing you to control which part of the image is retained in the final output. This parameter is important for focusing on specific areas of interest within the image.

resize_to_target

The resize_to_target parameter is a boolean option that, when enabled, resizes the cropped image to a specified target size. This is useful when you need the final image to meet certain resolution criteria, ensuring consistency across different images or projects.

Image Aspect Ratio Crop Output Parameters:

cropped_image

The cropped_image is the output of the node, representing the portion of the input image that has been cropped according to the specified aspect ratio and crop position. This output is crucial for further processing or direct use in projects where specific image dimensions are required.

Image Aspect Ratio Crop Usage Tips:

  • To maintain the highest quality, use high-resolution images as input to avoid pixelation in the cropped output.
  • Experiment with different crop_position settings to find the best framing for your image, especially if the subject is not centered.
  • Use the resize_to_target option to ensure that all your images have a consistent resolution, which is particularly useful for creating uniform galleries or portfolios.

Image Aspect Ratio Crop Common Errors and Solutions:

"Invalid aspect ratio format"

  • Explanation: The aspect ratio string provided does not follow the correct format, such as "width:height".
  • Solution: Ensure that the aspect_ratios parameter is formatted correctly, using a colon to separate width and height values, like "16:9".

"Crop position out of bounds"

  • Explanation: The specified crop position results in a crop area that exceeds the dimensions of the input image.
  • Solution: Adjust the crop_position parameter to ensure that the crop area fits within the image boundaries, or use a larger input image.

Image Aspect Ratio Crop Related Nodes

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

Image Aspect Ratio Crop