ComfyUI  >  Nodes  >  KJNodes for ComfyUI >  Create Shape Image On Path

ComfyUI Node: Create Shape Image On Path

Class Name

CreateShapeImageOnPath

Category
KJNodes/image
Author
kijai (Account age: 2192 days)
Extension
KJNodes for ComfyUI
Latest Updated
6/25/2024
Github Stars
0.3K

How to Install KJNodes for ComfyUI

Install this extension via the ComfyUI Manager by searching for  KJNodes for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter KJNodes for ComfyUI 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Create Shape Image On Path Description

Generate customizable shape images on paths with effects for AI artists creating structured visual elements.

Create Shape Image On Path:

The CreateShapeImageOnPath node is designed to generate images or batches of images with specified shapes placed at given coordinates. This node is particularly useful for creating structured visual elements within a frame, such as circles, squares, or triangles, with customizable sizes, colors, and positions. It allows you to define the dimensions of the frame and the shapes, as well as apply effects like blurring and intensity adjustments. This node is ideal for AI artists looking to create precise and repeatable patterns or designs within their artwork, providing a high degree of control over the visual output.

Create Shape Image On Path Input Parameters:

shape

Specifies the type of shape to be drawn. Options include circle, square, and triangle. The default value is circle.

coordinates

A string input that defines the center locations of the shapes within the frame. This parameter is required and must be provided.

frame_width

Defines the width of the frame in which the shapes will be drawn. The value must be an integer between 16 and 4096, with a default value of 512.

frame_height

Defines the height of the frame in which the shapes will be drawn. The value must be an integer between 16 and 4096, with a default value of 512.

shape_width

Specifies the width of the shape to be drawn. The value must be an integer between 8 and 4096, with a default value of 128.

shape_height

Specifies the height of the shape to be drawn. The value must be an integer between 8 and 4096, with a default value of 128.

shape_color

Defines the color of the shape. The value is a string representing the color, with a default value of white.

bg_color

Defines the background color of the frame. The value is a string representing the color, with a default value of black.

blur_radius

Specifies the radius of the Gaussian blur to be applied to the shape. The value must be a float between 0.0 and 100.0, with a default value of 0.0.

intensity

Defines the intensity of the shape's color. The value must be a float between 0.01 and 100.0, with a default value of 1.0.

size_multiplier

An optional parameter that allows you to scale the size of the shapes. The value is a float, with a default value of [1.0].

Create Shape Image On Path Output Parameters:

image

The generated image or batch of images containing the specified shapes. This output is an image object that can be used in further processing or directly in your artwork.

mask

A mask of the generated shapes, useful for further image manipulation or as a reference layer. This output is a mask object that highlights the areas where the shapes are drawn.

Create Shape Image On Path Usage Tips:

  • To create a pattern of shapes, provide a list of coordinates that define the center points of each shape.
  • Use the blur_radius parameter to soften the edges of the shapes, creating a more blended appearance.
  • Adjust the intensity parameter to make the shapes more or less prominent within the frame.
  • Experiment with different shape_color and bg_color combinations to achieve the desired visual effect.

Create Shape Image On Path Common Errors and Solutions:

"Invalid shape type"

  • Explanation: The shape parameter must be one of the predefined options: circle, square, or triangle.
  • Solution: Ensure that the shape parameter is set to one of the valid options.

"Coordinates not provided"

  • Explanation: The coordinates parameter is required and must be provided as a string.
  • Solution: Provide a valid string input for the coordinates parameter.

"Frame dimensions out of range"

  • Explanation: The frame_width and frame_height parameters must be within the range of 16 to 4096. - Solution: Adjust the frame_width and frame_height values to be within the acceptable range.

"Shape dimensions out of range"

  • Explanation: The shape_width and shape_height parameters must be within the range of 8 to 4096. - Solution: Adjust the shape_width and shape_height values to be within the acceptable range.

"Blur radius out of range"

  • Explanation: The blur_radius parameter must be a float between 0.0 and 100.0.
  • Solution: Adjust the blur_radius value to be within the acceptable range.

"Intensity out of range"

  • Explanation: The intensity parameter must be a float between 0.01 and 100.0.
  • Solution: Adjust the intensity value to be within the acceptable range.

Create Shape Image On Path Related Nodes

Go back to the extension to check out more related nodes.
KJNodes for ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.