Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply mosaic effect to images with customizable dot size, color, opacity, brightness, and color inversion for artistic or privacy purposes.
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.
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.
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.
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.
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.
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.
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.
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.
dot_size
values to achieve the desired level of detail or abstraction in your mosaic effect.opacity
parameter to blend the mosaic effect with the original image, creating a subtle or bold transformation.brightness
to enhance the visual impact of the mosaic, making it more vibrant or subdued as needed.opacity
is set to 0, making the mosaic effect completely transparent.opacity
value to ensure the mosaic effect is visible.invert_color
option is enabled, resulting in inverted colors.invert_color
setting and disable it if you want to retain the original color scheme.dot_size
or brightness
parameters might not be set optimally for your image.dot_size
and brightness
parameters to achieve the desired effect strength.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.