Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply pinching or stretching effects to images for creative distortions and unique artwork transformations.
The PinchNode is a powerful tool designed to apply a pinching or stretching effect to images, allowing you to create visually striking deformations. This node is particularly useful for artists looking to add dynamic and creative distortions to their images, enhancing the visual appeal and uniqueness of their artwork. By manipulating the image's pixels based on a specified center point, radius, and strength, the PinchNode can either pull pixels inward, creating a pinched effect, or push them outward, resulting in a stretched appearance. This flexibility makes it an essential component for generating artistic effects that require localized image transformations.
The image
parameter is the input image that you want to apply the pinching effect to. It serves as the canvas for the transformation, and the node will process this image to produce the desired deformation effect. The image should be in a compatible format that the node can process.
The strength
parameter controls the intensity of the pinching or stretching effect. A positive value will pinch the image inward, while a negative value will stretch it outward. The range for this parameter is from -2.0 to 2.0, with a default value of 0.5. Adjusting this parameter allows you to fine-tune the degree of deformation applied to the image.
The radius
parameter defines the size of the area around the center point that will be affected by the pinching effect. It is a float value ranging from 0.1 to 1.0, with a default of 0.5. A larger radius will affect a broader area of the image, while a smaller radius will confine the effect to a more localized region.
The center_x
parameter specifies the horizontal position of the center point for the pinching effect, expressed as a float between 0.0 and 1.0. The default value is 0.5, which centers the effect horizontally. Adjusting this parameter allows you to shift the effect's focal point along the x-axis.
The center_y
parameter determines the vertical position of the center point for the pinching effect, with a range from 0.0 to 1.0 and a default value of 0.5. This parameter lets you move the effect's focal point along the y-axis, providing control over the vertical placement of the deformation.
The falloff
parameter controls the rate at which the pinching effect diminishes with distance from the center point. It ranges from 0.0 to 1.0, with a default value of 0.5. A higher falloff value results in a more gradual transition, while a lower value creates a sharper boundary between affected and unaffected areas.
The output of the PinchNode is an IMAGE
that has undergone the specified pinching or stretching transformation. This output image reflects the applied deformation based on the input parameters, providing a visually altered version of the original image. The transformed image can be used for further processing or as a final artistic piece.
strength
values to achieve the desired level of pinching or stretching, keeping in mind that positive values pinch inward and negative values stretch outward.radius
parameter to control the extent of the effect, allowing you to focus the transformation on specific areas of the image or apply it more broadly.center_x
and center_y
parameters to position the effect precisely where you want it on the image, enabling targeted deformations.falloff
parameter to create smooth transitions between affected and unaffected areas, enhancing the natural appearance of the deformation.strength
parameter is set outside the allowed range of -2.0 to 2.0.strength
value to be within the specified range to ensure proper functioning of the node.radius
parameter is set outside the allowed range of 0.1 to 1.0.radius
value to fall within the acceptable range to achieve the desired effect.center_x
or center_y
parameters are set outside the range of 0.0 to 1.0.center_x
and center_y
are within the specified range to correctly position the effect on the image.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.