Cutout:
The ComfyTV.CutoutStage node is designed to facilitate the extraction of specific portions of an image, effectively allowing you to isolate and work with particular areas of interest within a larger visual context. This node is particularly beneficial for tasks that require focused editing or manipulation of image segments, such as creating cutouts for compositing, enhancing specific details, or preparing assets for further processing. By providing a streamlined method for defining and extracting image regions, the CutoutStage node enhances your workflow efficiency and precision, enabling you to achieve more targeted and refined results in your creative projects.
Cutout Input Parameters:
x
The x parameter specifies the horizontal starting point of the cutout region in pixels. It determines the top-left corner's X-coordinate from where the cutout will begin. The value must be within the range of 0 to 8192 pixels, with a default setting of 0. Adjusting this parameter allows you to shift the cutout region horizontally across the image, enabling precise control over the area you wish to extract.
y
The y parameter defines the vertical starting point of the cutout region in pixels. It sets the top-left corner's Y-coordinate for the cutout operation. This parameter accepts values from 0 to 8192 pixels, with a default of 0. By modifying this value, you can move the cutout region vertically, allowing for accurate selection of the desired image segment.
w
The w parameter represents the width of the cutout region in pixels. It determines how wide the extracted area will be, with a minimum value of 2 pixels and a maximum of 8192 pixels. The default width is set to 512 pixels. Adjusting this parameter enables you to control the horizontal extent of the cutout, ensuring that the extracted portion meets your specific requirements.
h
The h parameter indicates the height of the cutout region in pixels. It specifies the vertical size of the area to be extracted, with permissible values ranging from 2 to 8192 pixels. The default height is 512 pixels. By altering this parameter, you can define the vertical extent of the cutout, tailoring the extracted region to fit your project's needs.
video
The video parameter is an optional input that allows you to provide a video source from which frames can be extracted for the cutout operation. This parameter is particularly useful when working with video content, as it enables you to select specific frames for image extraction. If no video is provided, the node will operate solely on static images.
Cutout Output Parameters:
video
The video output parameter provides the resulting video after the cutout operation has been applied. This output contains the extracted region from the input video or image, allowing you to utilize the cutout segment in subsequent stages of your workflow. The output is crucial for integrating the isolated image portion into larger projects or for further processing and editing.
Cutout Usage Tips:
- Ensure that the
x,y,w, andhparameters are set accurately to define the desired cutout region, as these values directly impact the portion of the image or video that will be extracted. - When working with video content, use the
videoinput parameter to specify the source, allowing you to extract frames for cutout operations and achieve dynamic results. - Adjust the
wandhparameters to match the aspect ratio of the desired output, ensuring that the extracted region fits seamlessly into your project's visual composition.
Cutout Common Errors and Solutions:
"Video Clip needs an upstream video — wire one into the video input."
- Explanation: This error occurs when the node is executed without a valid video input, which is necessary for processing video frames.
- Solution: Ensure that a video source is connected to the
videoinput parameter before executing the node to avoid this error.
"Video Clip: end_s must be > start_s"
- Explanation: This error indicates that the specified end time for the video clip is not greater than the start time, which is required for a valid cutout operation.
- Solution: Adjust the
end_sparameter to ensure it is greater than thestart_sparameter, allowing for a valid time range for the cutout process.
