Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile tool for cropping and resizing images with precise control over dimensions and areas.
The ImageMagick Transform node is a versatile tool designed to perform both cropping and resizing operations on images. This node leverages the powerful capabilities of ImageMagick to allow you to precisely define the dimensions and areas of your images that you want to manipulate. By using this node, you can easily adjust the size and composition of your images, making it an essential tool for tasks that require image scaling and cropping. Whether you need to prepare images for specific display sizes or focus on particular regions of an image, the Transform node provides a straightforward and efficient way to achieve these goals.
This parameter accepts the image that you want to transform. The image should be in a format supported by ImageMagick.
This parameter allows you to specify the cropping dimensions and position. It accepts a string that defines the area of the image to be cropped. The format typically includes width, height, x-offset, and y-offset. For example, "100x100+10+10"
would crop a 100x100 area starting 10 pixels from the left and 10 pixels from the top. The default value is an empty string, which means no cropping will be applied.
This parameter allows you to specify the new dimensions for resizing the image. It accepts a string that defines the width and height to resize the image to. The format typically includes the width and height separated by an 'x'. For example, "200x200"
would resize the image to 200 pixels by 200 pixels. The default value is an empty string, which means no resizing will be applied.
The output is the transformed image, which has been cropped and/or resized according to the specified parameters. This image can then be used in subsequent nodes or saved as needed.
resize
parameter empty and only specify the crop
parameter.crop
parameter empty and only specify the resize
parameter.crop
and resize
parameters, the cropping operation will be applied first, followed by the resizing operation.Invalid crop string format
"widthxheight+x_offset+y_offset"
. For example, "100x100+10+10"
.Invalid resize string format
"widthxheight"
. For example, "200x200"
.Image not found
Transformation failed
© Copyright 2024 RunComfy. All Rights Reserved.