ComfyUI > Nodes > D2 Nodes ComfyUI > D2 Mosaic Filter

ComfyUI Node: D2 Mosaic Filter

Class Name

D2 Mosaic Filter

Category
D2/Image
Author
da2el-ai (Account age: 713days)
Extension
D2 Nodes ComfyUI
Latest Updated
2025-05-04
Github Stars
0.03K

How to Install D2 Nodes ComfyUI

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

D2 Mosaic Filter Description

Apply mosaic effect to images with customizable dot size, color, opacity, brightness, and color inversion for artistic or privacy purposes.

D2 Mosaic Filter:

The D2 Mosaic Filter is a powerful tool designed to apply a mosaic effect to images, transforming them into a grid of colored dots. This effect is often used to obscure details or create an artistic, pixelated look. The filter allows you to customize the size of the mosaic dots, the color mode, and the opacity, providing flexibility in achieving the desired visual outcome. Additionally, you can adjust the brightness and invert the colors to further enhance the artistic effect. This node is particularly useful for creating unique visual styles or for privacy purposes by obscuring sensitive parts of an image.

D2 Mosaic Filter Input Parameters:

images

This parameter accepts the image or images you wish to apply the mosaic effect to. It is the primary input and determines the base content that will be transformed by the filter.

dot_size

The dot_size parameter controls the size of the mosaic dots, with a default value of 20. It can range from a minimum of 1 to a maximum of 512. Larger dot sizes will result in a more pronounced mosaic effect, while smaller sizes will retain more of the original image detail.

color_mode

The color_mode parameter allows you to choose how colors are applied to the mosaic dots. You can select between "average," which uses the average color of the area covered by each dot, or "original," which retains the original colors of the image.

opacity

This parameter sets the opacity of the mosaic effect, with a default value of 1. It ranges from 0 to 1, where 0 is completely transparent and 1 is fully opaque. Adjusting the opacity allows you to blend the mosaic effect with the original image.

brightness

The brightness parameter adjusts the brightness of the mosaic effect, with a default value of 0. It can range from -100 to 100, where negative values darken the image and positive values brighten it. This can be used to enhance or subdue the visual impact of the mosaic.

invert_color

The invert_color parameter is a boolean option that, when enabled, inverts the colors of the mosaic effect. This can create a striking visual contrast and is useful for artistic purposes.

D2 Mosaic Filter Output Parameters:

IMAGE

The output of the D2 Mosaic Filter is an image with the applied mosaic effect. This transformed image reflects the adjustments made through the input parameters, such as dot size, color mode, opacity, brightness, and color inversion. The result is a visually distinct image that can be used for artistic expression or privacy purposes.

D2 Mosaic Filter Usage Tips:

  • Experiment with different dot_size values to achieve the desired level of detail or abstraction in your mosaic effect.
  • Use the opacity parameter to blend the mosaic effect with the original image, creating a subtle or bold transformation.
  • Adjust the brightness to enhance the visual impact of the mosaic, making it more vibrant or subdued as needed.

D2 Mosaic Filter Common Errors and Solutions:

Image not displaying after applying mosaic

  • Explanation: This could occur if the opacity is set to 0, making the mosaic effect completely transparent.
  • Solution: Increase the opacity value to ensure the mosaic effect is visible.

Unexpected colors in the mosaic

  • Explanation: This might happen if the invert_color option is enabled, resulting in inverted colors.
  • Solution: Check the invert_color setting and disable it if you want to retain the original color scheme.

Mosaic effect too subtle or too strong

  • Explanation: The dot_size or brightness parameters might not be set optimally for your image.
  • Solution: Adjust the dot_size and brightness parameters to achieve the desired effect strength.

D2 Mosaic Filter Related Nodes

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