Visit ComfyUI Online for ready-to-use ComfyUI environment
Trim image edges by removing rows/columns, useful for cleaning up and focusing on central content.
The ImageMagick Shave node is designed to trim the edges of an image by removing a specified number of rows and columns from the borders. This operation is particularly useful for removing unwanted borders or frames from an image, allowing you to focus on the central content. By shaving off the edges, you can clean up the image and prepare it for further processing or presentation. This node is part of the MagickWand/Transform category, emphasizing its role in altering the structure of the image.
This parameter represents the input image that you want to process. It should be provided in a compatible image format that the node can handle.
This parameter specifies the number of columns to be removed from the left and right edges of the image. The value must be an integer between 1 and 1024, with a default value of 512. Adjusting this value will determine how much of the image's width is shaved off.
This parameter specifies the number of rows to be removed from the top and bottom edges of the image. The value must be an integer between 1 and 1024, with a default value of 512. Adjusting this value will determine how much of the image's height is shaved off.
The output is the processed image with the specified number of rows and columns shaved off from its edges. This trimmed image can then be used for further processing or analysis.
columns
and rows
parameters to shave off the desired amount from the edges.columns
and rows
to achieve the best results for your specific image.columns
or rows
value is outside the allowed range of 1 to 1024. - Solution: Adjust the columns
and rows
values to be within the range of 1 to 1024.columns
and rows
values to ensure that the image dimensions are sufficient for the shaving operation.© Copyright 2024 RunComfy. All Rights Reserved.