Visit ComfyUI Online for ready-to-use ComfyUI environment
Crop images into perfect square format with control over position, zoom, and interpolation for uniform visuals.
The Crop Image Square (JPS) node is designed to help you crop images into a perfect square format, which is particularly useful for creating uniform and aesthetically pleasing visuals. This node allows you to specify the crop position, offsets, zoom level, and interpolation method, ensuring that you have full control over how the image is cropped. By using this node, you can easily prepare images for various artistic and design purposes, maintaining a consistent aspect ratio and enhancing the overall visual appeal of your work.
This parameter allows you to specify the position from which the image will be cropped. You can choose from options such as "center", "top", "bottom", "left", and "right". The choice of crop position affects which part of the image will be retained in the final square crop. For example, selecting "center" will crop the image around its center, while "top" will crop from the top part of the image.
This parameter defines the offset value for the source crop position. It accepts integer values ranging from -2048 to 2048, with a default value of 0. The offset value shifts the crop area horizontally or vertically, depending on the crop position, allowing you to fine-tune the exact area of the image to be cropped.
Similar to source_crop_pos
, this parameter specifies the position for the support crop. The available options are "center", "top", "bottom", "left", and "right". This parameter is useful when you need to align the crop position of the source image with another reference or support image.
This parameter defines the offset value for the support crop position. It accepts integer values ranging from -2048 to 2048, with a default value of 0. The offset value shifts the crop area of the support image horizontally or vertically, allowing you to align it precisely with the source image crop.
This parameter specifies the interpolation method to be used when resizing the cropped image. The available options are "lanczos", "nearest", "bilinear", "bicubic", "area", and "nearest-exact". The choice of interpolation method affects the quality and smoothness of the resized image. For example, "lanczos" provides high-quality results, while "nearest" is faster but may produce a more pixelated image.
This output parameter returns the crop position used for the source image. It helps you verify the exact position from which the image was cropped, ensuring consistency in your workflow.
This output parameter returns the offset value applied to the source crop position. It allows you to confirm the exact offset used, which is useful for documentation and reproducibility of your image processing steps.
This output parameter returns the crop position used for the support image. It helps you verify the alignment of the support image crop with the source image crop.
This output parameter returns the offset value applied to the support crop position. It allows you to confirm the exact offset used for the support image, ensuring precise alignment.
This output parameter returns the interpolation method used for resizing the cropped image. It helps you verify the quality and smoothness of the resized image, ensuring that the chosen interpolation method meets your requirements.
source_crop_pos
to "center" and source_crop_offset
to 0.crop_intpol
parameter to select "lanczos" for high-quality image resizing, especially when working with detailed images.source_crop_pos
and support_crop_pos
settings to create unique compositions and alignments in your artwork.source_crop_pos
and support_crop_pos
parameters are set to one of the valid options: "center", "top", "bottom", "left", or "right".source_crop_offset
and support_crop_offset
parameters to be within the range of -2048 to 2048.© Copyright 2024 RunComfy. All Rights Reserved.