LayerStyle

2167
By chflame
Updated 15 days ago
View on GitHub →See Common Issues →

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.

Available Nodes

LayerFilter: MotionBlur

Documentation for LayerFilter: MotionBlur Node

Overview

The LayerFilter: MotionBlur node is a component of the ComfyUI_LayerStyle project hosted on GitHub. This node applies a motion blur effect to images. It is particularly useful for adding dynamic effects and simulating motion in still images. The node is part of the broader ComfyUI framework, which is designed for flexible image processing workflows.

Functionality

The primary function of the LayerFilter: MotionBlur node is to apply a motion blur effect to an input image. Motion blur mimics the photographic effect that occurs when a moving object is captured at a slow shutter speed, resulting in a streaking effect along the direction of motion.

Inputs

The LayerFilter: MotionBlur node requires the following inputs:

  • Image: The image(s) to be processed, specified in a compatible format that the node can handle.

  • Angle: An integer value representing the angle of motion blur in degrees. The angle can range from -90 to 90 degrees. This dictates the direction in which the blur effect will be applied.

    • Default: 0 degrees
    • Range: -90 to 90 degrees
  • Blur: An integer value representing the strength of the blur effect. This parameter controls how much the image is blurred in the given direction.

    • Default: 20
    • Range: 1 to 999

Outputs

The node produces the following output:

  • Image: The image(s) with the applied motion blur effect. The output format is consistent with the input image format to ensure compatibility within workflows.

Usage in ComfyUI Workflows

The LayerFilter: MotionBlur node can be integrated into ComfyUI workflows where dynamic or artistic effects are desired. It is typically used in image editing pipelines to enhance the sense of movement or to add creative visual effects.

Example Workflow

  1. Image Input: Start with an input image that you want to add a motion blur effect to.

  2. Configure Node Parameters: Adjust the angle and blur settings of the LayerFilter: MotionBlur node to achieve the desired effect.

  3. Apply Motion Blur: Connect the node to your processing pipeline, ensuring that the image input and output are correctly handled.

  4. Output Image: The resulting image will display the specified motion blur effect, and can be further processed or exported as needed.

Special Features and Considerations

  • Customizable Parameters: The node's angle and blur inputs offer flexibility, allowing users to tailor the effect according to their specific needs.

  • Multiple Image Processing: The node processes images individually, making it suitable for batch processing within a workflow.

  • Integration: As part of the ComfyUI framework, the node can be easily integrated with other nodes and components, extending its utility across a wide range of image processing tasks.

For more details on collaborating with ComfyUI, refer to the project's GitHub repository.