Visit ComfyUI Online for ready-to-use ComfyUI environment
Crop image by specifying inset values from edges in pixels or percentage, precise control, snap to nearest 8 pixels, AI artist tool.
The Image Inset Crop (rgthree) node is designed to crop an image by specifying inset values from the edges, either in pixels or as a percentage of the image dimensions. This node allows you to precisely control the cropping area by defining how much to inset from the left, right, top, and bottom edges. The primary benefit of this node is its flexibility in handling different measurement units and its ability to snap the inset values to the nearest 8 pixels, ensuring compatibility with various image processing requirements. This node is particularly useful for AI artists who need to focus on specific regions of an image or remove unwanted borders, enhancing the overall composition and visual appeal of their artwork.
The image parameter is the input image that you want to crop. It should be provided in a compatible image format that the node can process.
The measurement parameter determines the unit of measurement for the inset values. It can be set to either Pixels
or Percentage
. When set to Pixels
, the inset values are interpreted as pixel counts. When set to Percentage
, the inset values are interpreted as percentages of the image's width and height.
The left parameter specifies the amount to inset from the left edge of the image. The value can range from 0 to the maximum resolution of the image, with a default value of 0. The step size for this parameter is 8 pixels, ensuring that the inset value is snapped to the nearest 8 pixels.
The right parameter specifies the amount to inset from the right edge of the image. Similar to the left parameter, it can range from 0 to the maximum resolution of the image, with a default value of 0 and a step size of 8 pixels.
The top parameter specifies the amount to inset from the top edge of the image. The value can range from 0 to the maximum resolution of the image, with a default value of 0. The step size for this parameter is 8 pixels.
The bottom parameter specifies the amount to inset from the bottom edge of the image. It can range from 0 to the maximum resolution of the image, with a default value of 0 and a step size of 8 pixels.
The image parameter is the output image after the cropping operation has been applied. This cropped image reflects the specified insets from the original image, providing a new image that focuses on the desired region.
Pixels
measurement and specify exact pixel values for the insets.Percentage
measurement to define insets as a percentage of the image dimensions, ensuring consistent results across different image sizes.© Copyright 2024 RunComfy. All Rights Reserved.