ComfyUI > Nodes > DJZ-Nodes > Anamorphic Lens Effect

ComfyUI Node: Anamorphic Lens Effect

Class Name

AnamorphicEffect

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

Anamorphic Lens Effect Description

Simulate anamorphic lens effects for cinematic visuals with oval bokeh, lens flares, and aspect ratio adjustments.

Anamorphic Lens Effect:

The AnamorphicEffect node is designed to simulate the unique characteristics of anamorphic lenses, which are often used in cinematography to create a distinctive visual style. This node allows you to apply effects such as oval bokeh, lens flares, and aspect ratio adjustments that are typical of anamorphic lenses. These effects can add a cinematic quality to your images, enhancing their aesthetic appeal by mimicking the way light interacts with anamorphic lenses. The node is particularly useful for artists looking to replicate the look of classic films or to add a dramatic flair to their digital artwork. By leveraging the power of GPU acceleration, the AnamorphicEffect node ensures efficient processing, making it a valuable tool for AI artists seeking to enhance their creative projects with realistic lens effects.

Anamorphic Lens Effect Input Parameters:

squeeze_ratio

The squeeze_ratio parameter controls the aspect ratio adjustment typical of anamorphic lenses. It determines how much the image is horizontally compressed, which can create a widescreen effect. The minimum value is 0.0, the maximum is 1.0, and the default is typically set to a value that provides a subtle effect. Adjusting this parameter can significantly alter the composition and feel of the image, making it appear more cinematic.

flare_intensity

The flare_intensity parameter dictates the brightness of the lens flares in the image. Lens flares are bright spots or streaks that occur when light is scattered in a lens system, and increasing this parameter will make these flares more pronounced. The minimum value is 0.0, the maximum is 1.0, and the default is set to a moderate level to ensure visibility without overwhelming the image.

flare_length

The flare_length parameter affects the length of the lens flares. Longer flares can create dramatic streaks of light across the image, enhancing the cinematic effect. The minimum value is 0.0, the maximum is 1.0, and the default is set to a balanced level that complements the flare intensity.

flare_color

The flare_color parameter allows you to adjust the color of the lens flares, adding a creative touch to the effect. This can be used to match the flares to the overall color scheme of the image or to create a specific mood. The parameter typically accepts a range of color values, allowing for flexibility in artistic expression.

bokeh_amount

The bokeh_amount parameter controls the intensity of the bokeh effect, which refers to the aesthetic quality of the out-of-focus areas of an image. Increasing this parameter will enhance the blurriness of the background, drawing attention to the subject and creating a sense of depth. The minimum value is 0.0, the maximum is 1.0, and the default is set to a level that provides a noticeable but not overpowering effect.

bokeh_elliptical

The bokeh_elliptical parameter adjusts the shape of the bokeh effect, making it more oval-shaped as seen in anamorphic lenses. This parameter ranges from 0.0 to 1.0, with a default value of 0.5, allowing you to fine-tune the bokeh shape to achieve the desired artistic effect.

chromatic_aberration

The chromatic_aberration parameter simulates the color fringing effect that occurs when a lens fails to focus all colors to the same convergence point. This can add a layer of realism to the image, as chromatic aberration is a common characteristic of real-world lenses. The parameter ranges from 0.0 to 1.0, with a default value of 0.0, allowing you to introduce this effect subtly or more prominently.

Anamorphic Lens Effect Output Parameters:

images

The images output parameter provides the processed image(s) with the applied anamorphic effects. This output is crucial as it represents the final visual result of the node's processing, incorporating all the specified adjustments such as aspect ratio changes, lens flares, bokeh, and chromatic aberration. The images are clamped to ensure they remain within the correct range, providing a polished and ready-to-use result for further artistic endeavors.

Anamorphic Lens Effect Usage Tips:

  • Experiment with the squeeze_ratio to achieve the desired widescreen effect, which can dramatically change the composition of your image.
  • Use flare_intensity and flare_length in combination to create dynamic and eye-catching lens flares that enhance the cinematic quality of your work.
  • Adjust bokeh_amount and bokeh_elliptical to control the depth of field and focus, drawing attention to specific areas of your image.
  • Introduce chromatic_aberration subtly to add realism, especially in images where a vintage or filmic look is desired.

Anamorphic Lens Effect Common Errors and Solutions:

"CUDA device not available"

  • Explanation: This error occurs when the node attempts to use a GPU for processing, but no compatible CUDA device is found.
  • Solution: Ensure that your system has a CUDA-compatible GPU and that the necessary drivers are installed. Alternatively, switch to CPU processing if a GPU is not available.

"Parameter value out of range"

  • Explanation: This error indicates that one or more input parameters have been set outside their allowable range.
  • Solution: Check the values of all input parameters and ensure they fall within the specified minimum and maximum limits. Adjust any parameters that are out of range to valid values.

Anamorphic Lens Effect 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.