Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates precise image cropping with inset values for alignment and consistency in 8-pixel increments.
The easy imageInsetCrop node is designed to facilitate precise cropping of images by specifying inset values from the edges. This node allows you to crop images based on either pixel values or percentages, making it versatile for various artistic and technical needs. The primary goal of this node is to provide a straightforward method to remove unwanted borders or focus on specific regions within an image, enhancing the overall composition and visual appeal. By snapping the crop dimensions to 8-pixel increments, it ensures alignment and consistency, which is particularly useful for maintaining image quality and structure.
This parameter represents the input image that you want to crop. It should be provided in a compatible image format that the node can process.
This parameter determines the unit of measurement for the cropping values. It can be set to either "Pixels" or "Percentage". When set to "Pixels", the cropping values are interpreted as absolute pixel values. When set to "Percentage", the cropping values are interpreted as percentages of the image's dimensions.
This parameter specifies the number of pixels or percentage to crop from the left edge of the image. The value should be adjusted based on the desired cropping effect. If using percentage, the value should be between 0 and 100.
This parameter specifies the number of pixels or percentage to crop from the right edge of the image. Similar to the left parameter, it should be adjusted based on the desired cropping effect. If using percentage, the value should be between 0 and 100.
This parameter specifies the number of pixels or percentage to crop from the top edge of the image. Adjust this value to control the amount of cropping from the top. If using percentage, the value should be between 0 and 100.
This parameter specifies the number of pixels or percentage to crop from the bottom edge of the image. Adjust this value to control the amount of cropping from the bottom. If using percentage, the value should be between 0 and 100.
The output parameter is the cropped image. This image will have the specified insets removed, resulting in a new image that focuses on the desired region. The output image maintains the same format as the input image but with adjusted dimensions based on the cropping parameters.
<inset_top\>
) exceeds bottom (<inset_bottom\>
)<inset_left\>
) exceeds right (<inset_right\>
)<len(original_image)\>
) and cropped_images (<len(crop_image)\>
) should be the same© Copyright 2024 RunComfy. All Rights Reserved.