ComfyUI > Nodes > DJZ-Nodes > Lens Leaks

ComfyUI Node: Lens Leaks

Class Name

LensLeaks

Category
image/effects
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

Install this extension via the ComfyUI Manager by searching for DJZ-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter DJZ-Nodes 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

Lens Leaks Description

Enhance images with realistic lens effects for artistic flair and depth, simulating natural imperfections and light artifacts creatively.

Lens Leaks:

The LensLeaks node is designed to enhance your images with realistic lens effects, such as lens leaks and flares, which are often used to add artistic flair and depth to visual content. This node allows you to simulate the natural imperfections and light artifacts that occur when light interacts with a camera lens, providing a creative tool for AI artists to enrich their imagery. By applying these effects, you can achieve a more dynamic and visually appealing result, making your images stand out with a professional touch. The node's primary function is to apply these lens effects to a batch of images, offering flexibility in terms of effect intensity, color, and additional enhancements like chromatic aberration and bloom. This makes it an essential tool for artists looking to add a unique and polished look to their digital artwork.

Lens Leaks Input Parameters:

images

This parameter represents the batch of images to which the lens effects will be applied. It is essential as it serves as the input data for the node's processing.

effect_mode

This parameter allows you to select the type of lens effect to apply, with options including "lens_leaks" and "lens_flares". The choice of effect mode determines the visual style and type of light artifact that will be added to the images.

intensity

This parameter controls the strength of the applied lens effect, ranging from 0.0 to 1.0, with a default value of 0.5. A higher intensity will result in more pronounced effects, while a lower intensity will produce subtler enhancements.

leak_color

This parameter specifies the color temperature of the lens leaks, offering options such as "warm", "cool", and "rainbow". The selected color mode influences the overall mood and aesthetic of the image by altering the hue of the light leaks.

num_leaks

This parameter determines the number of lens leaks to be applied, with a range from 1 to 10 and a default value of 3. Increasing the number of leaks can create a more complex and layered effect, while fewer leaks result in a simpler appearance.

leak_size

This parameter defines the relative size of each lens leak, ranging from 0.1 to 1.0, with a default value of 0.3. Larger leak sizes will cover more of the image, creating a more dramatic effect, while smaller sizes will be more subtle.

chromatic_aberration

This parameter adjusts the level of chromatic aberration, a common lens distortion effect, with values from 0.0 to 1.0 and a default of 0.2. This effect can add a sense of realism and depth by simulating the color fringing that occurs in real-world photography.

bloom_radius

This parameter sets the radius for the bloom effect, which enhances bright areas of the image, with a range from 10 to 200 and a default value of 50. A larger radius will create a more pronounced glow around bright spots, adding a dreamy quality to the image.

flare_position

This parameter controls the position of the lens flare effect along the image, ranging from 0.0 to 1.0, with a default value of 0.5. Adjusting the flare position allows you to strategically place the flare for optimal visual impact.

Lens Leaks Output Parameters:

IMAGE

The output is a batch of images with the applied lens effects, returned as a torch tensor. This output is crucial as it represents the final processed images, ready for further use or display, showcasing the enhanced visual effects achieved through the node's processing.

Lens Leaks Usage Tips:

  • Experiment with different effect_mode settings to find the best fit for your artistic vision, as each mode offers a distinct visual style.
  • Adjust the intensity parameter to balance the effect's prominence, ensuring it complements rather than overwhelms your image.
  • Use the leak_color option to match the mood of your artwork, choosing warm tones for a cozy feel or cool tones for a more serene atmosphere.

Lens Leaks Common Errors and Solutions:

"Invalid image input"

  • Explanation: This error occurs when the input images are not in the expected format or shape.
  • Solution: Ensure that the images are provided as a batch in the correct format, typically as a torch tensor with the appropriate dimensions.

"Effect mode not recognized"

  • Explanation: This error arises when an unsupported effect mode is selected.
  • Solution: Verify that the effect_mode parameter is set to either "lens_leaks" or "lens_flares", as these are the supported options.

"Parameter out of range"

  • Explanation: This error indicates that one or more parameters are set outside their allowed range.
  • Solution: Check all input parameters to ensure they fall within the specified minimum and maximum values, adjusting them as necessary.

Lens Leaks Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
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.