Visit ComfyUI Online for ready-to-use ComfyUI environment
Crop specified region from latent image with precise control over parameters for focused manipulation.
The LatentCrop
node is designed to crop a specified region from a latent image, which is a representation used in AI models to encode image data. This node allows you to define the exact area of the latent image you want to extract by specifying the width, height, and the starting coordinates (x, y) of the crop. This can be particularly useful for focusing on specific parts of an image, removing unwanted areas, or preparing the latent image for further processing. By providing precise control over the cropping parameters, LatentCrop
helps you manipulate latent images effectively, ensuring that only the desired portion of the image is retained for subsequent operations.
This parameter represents the latent image data that you want to crop. It is a required input and should be of the type LATENT
. The latent image contains the encoded information of the original image, which the node will process to extract the specified region.
This parameter defines the width of the cropped region in pixels. The default value is 512, with a minimum value of 64 and a maximum value determined by the MAX_RESOLUTION
constant. The width must be a multiple of 8, as indicated by the step size of 8. Adjusting this parameter allows you to control the horizontal size of the cropped area.
This parameter specifies the height of the cropped region in pixels. Similar to the width, the default value is 512, with a minimum value of 64 and a maximum value determined by the MAX_RESOLUTION
constant. The height must also be a multiple of 8. This parameter lets you control the vertical size of the cropped area.
This parameter sets the x-coordinate of the top-left corner of the cropped region. The default value is 0, with a minimum value of 0 and a maximum value determined by the MAX_RESOLUTION
constant. The x-coordinate must be a multiple of 8. Adjusting this parameter allows you to shift the cropped area horizontally within the latent image.
This parameter defines the y-coordinate of the top-left corner of the cropped region. The default value is 0, with a minimum value of 0 and a maximum value determined by the MAX_RESOLUTION
constant. The y-coordinate must be a multiple of 8. This parameter lets you shift the cropped area vertically within the latent image.
The output of the LatentCrop
node is a cropped latent image of type LATENT
. This output contains only the specified region of the original latent image, based on the width, height, x, and y parameters provided. The cropped latent image can then be used for further processing or analysis in subsequent nodes.
MAX_RESOLUTION
. Adjust the parameters to valid values.© Copyright 2024 RunComfy. All Rights Reserved.