ComfyUI  >  Nodes  >  rgthree's ComfyUI Nodes >  Image Inset Crop (rgthree)

ComfyUI Node: Image Inset Crop (rgthree)

Class Name

Image Inset Crop (rgthree)

Category
rgthree
Author
rgthree (Account age: 4983 days)
Extension
rgthree's ComfyUI Nodes
Latest Updated
7/3/2024
Github Stars
0.7K

How to Install rgthree's ComfyUI Nodes

Install this extension via the ComfyUI Manager by searching for  rgthree's ComfyUI Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter rgthree's ComfyUI Nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Inset Crop (rgthree) Description

Crop image by specifying inset values from edges in pixels or percentage, precise control, snap to nearest 8 pixels, AI artist tool.

Image Inset Crop (rgthree):

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.

Image Inset Crop (rgthree) Input Parameters:

image

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.

measurement

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.

left

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.

top

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.

bottom

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.

Image Inset Crop (rgthree) Output Parameters:

image

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.

Image Inset Crop (rgthree) Usage Tips:

  • To achieve precise cropping, use the Pixels measurement and specify exact pixel values for the insets.
  • For proportional cropping, use the Percentage measurement to define insets as a percentage of the image dimensions, ensuring consistent results across different image sizes.
  • Utilize the snapping feature to 8 pixels to maintain alignment and compatibility with other image processing nodes that may require specific pixel dimensions.

Image Inset Crop (rgthree) Common Errors and Solutions:

Invalid cropping dimensions top exceeds bottom

  • Explanation: This error occurs when the specified top inset value is greater than the bottom inset value, resulting in an invalid cropping area.
  • Solution: Ensure that the top inset value is less than or equal to the bottom inset value to define a valid cropping area.

Invalid cropping dimensions left exceeds right

  • Explanation: This error occurs when the specified left inset value is greater than the right inset value, resulting in an invalid cropping area.
  • Solution: Ensure that the left inset value is less than or equal to the right inset value to define a valid cropping area.

Image Inset Crop (rgthree) Related Nodes

Go back to the extension to check out more related nodes.
rgthree's ComfyUI Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.