ComfyUI Node: 🤏 Pinch

Class Name

PinchNode

Category
Image Effects
Author
orion4d (Account age: 929days)
Extension
ComfyUI-Image-Effects
Latest Updated
2025-05-28
Github Stars
0.02K

How to Install ComfyUI-Image-Effects

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Effects
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Effects in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🤏 Pinch Description

Apply pinching or stretching effects to images for creative distortions and unique artwork transformations.

🤏 Pinch:

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.

🤏 Pinch Input Parameters:

image

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.

strength

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.

radius

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.

center_x

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.

center_y

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.

falloff

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.

🤏 Pinch Output Parameters:

IMAGE

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.

🤏 Pinch Usage Tips:

  • Experiment with different strength values to achieve the desired level of pinching or stretching, keeping in mind that positive values pinch inward and negative values stretch outward.
  • Use the 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.
  • Adjust the center_x and center_y parameters to position the effect precisely where you want it on the image, enabling targeted deformations.
  • Modify the falloff parameter to create smooth transitions between affected and unaffected areas, enhancing the natural appearance of the deformation.

🤏 Pinch Common Errors and Solutions:

Image format not supported

  • Explanation: The input image is not in a format that the node can process.
  • Solution: Ensure that the image is in a compatible format, such as a standard image file type that the node can handle.

Strength value out of range

  • Explanation: The strength parameter is set outside the allowed range of -2.0 to 2.0.
  • Solution: Adjust the strength value to be within the specified range to ensure proper functioning of the node.

Radius value out of range

  • Explanation: The radius parameter is set outside the allowed range of 0.1 to 1.0.
  • Solution: Modify the radius value to fall within the acceptable range to achieve the desired effect.

Center coordinates out of bounds

  • Explanation: The center_x or center_y parameters are set outside the range of 0.0 to 1.0.
  • Solution: Ensure that both center_x and center_y are within the specified range to correctly position the effect on the image.

🤏 Pinch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Effects
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.