Visit ComfyUI Online for ready-to-use ComfyUI environment
Manipulate and transform mask layers for image processing tasks with scaling, rotating, mirroring capabilities.
The LayerUtility: LayerMaskTransform
node is designed to manipulate and transform mask layers in various ways, providing you with a versatile tool for image processing tasks. This node allows you to apply transformations such as scaling, rotating, and mirroring to mask layers, which are essential for tasks like compositing, masking, and image editing. By using this node, you can precisely control the position, size, and orientation of mask layers, ensuring that they fit perfectly within your desired layout. The node also supports anti-aliasing and different transformation methods to maintain the quality of the masks during the transformation process. Overall, LayerUtility: LayerMaskTransform
is a powerful utility for AI artists looking to enhance their image processing workflows with advanced mask manipulation capabilities.
The mask
parameter is the input mask layer that you want to transform. It is expected to be in the format of a tensor. This mask serves as the base layer upon which all transformations will be applied.
The x
parameter specifies the horizontal offset for the mask transformation. It determines how much the mask will be shifted along the x-axis. The default value is 0, with a minimum of -99999 and a maximum of 99999, allowing for a wide range of horizontal adjustments.
The y
parameter specifies the vertical offset for the mask transformation. It determines how much the mask will be shifted along the y-axis. The default value is 0, with a minimum of -99999 and a maximum of 99999, allowing for a wide range of vertical adjustments.
The mirror
parameter allows you to apply a mirroring effect to the mask. You can choose from three options: None
, horizontal
, and vertical
. This parameter is useful for creating symmetrical effects or flipping the mask along the specified axis.
The scale
parameter controls the scaling factor of the mask. It determines how much the mask will be resized. The default value is 1, with a minimum of 0.01 and a maximum of 100, providing flexibility in adjusting the mask size.
The aspect_ratio
parameter adjusts the aspect ratio of the mask. It allows you to stretch or compress the mask along the vertical axis. The default value is 1, with a minimum of 0.01 and a maximum of 100, enabling precise control over the mask's proportions.
The rotate
parameter specifies the rotation angle for the mask transformation. It determines how much the mask will be rotated in degrees. The default value is 0, with a minimum of -999999 and a maximum of 999999, allowing for full 360-degree rotation and beyond.
The transform_method
parameter defines the interpolation method used for scaling and rotating the mask. You can choose from several options: lanczos
, bicubic
, hamming
, bilinear
, box
, and nearest
. Each method offers different levels of quality and performance, allowing you to select the most suitable one for your needs.
The anti_aliasing
parameter controls the level of anti-aliasing applied during the transformation process. It helps to smooth out the edges of the mask and reduce visual artifacts. The default value is 2, with a minimum of 0 and a maximum of 16, providing a range of anti-aliasing levels to choose from.
The mask
output parameter is the transformed mask layer resulting from the applied transformations. It is returned in the format of a tensor. This output mask can be used in subsequent image processing tasks or compositing operations, providing you with a modified version of the original mask that fits your desired specifications.
x
and y
parameters to fine-tune the position of the mask.transform_method
options to find the best balance between quality and performance for your specific use case.mirror
parameter to create symmetrical effects or to flip the mask for different visual perspectives.scale
and aspect_ratio
parameters to fit the mask within specific dimensions or to match the proportions of other elements in your composition.rotate
parameter to align the mask with other rotated elements or to create dynamic visual effects.mirror
parameter.mirror
parameter is set to one of the following values: None
, horizontal
, or vertical
.scale
parameter is set to a value outside the allowed range.scale
parameter is set to a value between 0.01 and 100.aspect_ratio
parameter is set to a value outside the allowed range.aspect_ratio
parameter is set to a value between 0.01 and 100.rotate
parameter is set to a value outside the allowed range.rotate
parameter is set to a value between -999999 and 999999.transform_method
parameter.transform_method
parameter is set to one of the following values: lanczos
, bicubic
, hamming
, bilinear
, box
, or nearest
.anti_aliasing
parameter is set to a value outside the allowed range.anti_aliasing
parameter is set to a value between 0 and 16.© Copyright 2024 RunComfy. All Rights Reserved.