ComfyUI > Nodes > ComfyUI-MingNodes > Add Watermark

ComfyUI Node: Add Watermark

Class Name

AddWaterMarkNode

Category
MingNodes/Image Process
Author
mingsky (Account age: 460days)
Extension
ComfyUI-MingNodes
Latest Updated
2024-09-16
Github Stars
0.11K

How to Install ComfyUI-MingNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-MingNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-MingNodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Add Watermark Description

Versatile tool for adding customizable watermarks (text or image) to enhance and protect images.

Add Watermark:

The AddWaterMarkNode is a versatile tool designed to enhance your images by adding watermarks, which can be either text or image-based. This node is particularly useful for artists and creators who wish to protect their work or add branding to their images. By allowing you to customize the position, opacity, and scale of the watermark, this node provides flexibility in how the watermark is applied, ensuring it complements rather than detracts from the original image. The node supports both image and text watermarks, offering options to adjust text color and font, making it a comprehensive solution for watermarking needs.

Add Watermark Input Parameters:

image

This parameter represents the original image to which the watermark will be added. It is essential as the base layer for the watermarking process.

image_watermark

A boolean parameter that determines whether an image watermark will be applied. The default value is True, meaning an image watermark will be used unless specified otherwise.

position_X

This integer parameter sets the horizontal position of the watermark on the image. It ranges from 0 to 10000, with a default value of 0, allowing precise placement of the watermark.

position_Y

Similar to position_X, this integer parameter sets the vertical position of the watermark. It also ranges from 0 to 10000, with a default value of 0, providing control over the watermark's vertical alignment.

opacity

A float parameter that controls the transparency of the watermark, ranging from 0 (completely transparent) to 1 (fully opaque). The default value is 1.0, ensuring the watermark is visible by default.

scale

This float parameter adjusts the size of the watermark relative to its original dimensions. It ranges from 0.1 to 10.0, with a default value of 1.0, allowing you to scale the watermark to fit the image appropriately.

watermark

An optional parameter that accepts an image to be used as the watermark. This parameter is used when image_watermark is set to True.

watermark_mask

An optional mask image that defines the transparency of the watermark. The mask must be the same size as the watermark image.

text

A string parameter for the text to be used as a watermark. The default value is "enter text", and it is used when a text watermark is desired.

text_color

This string parameter specifies the color of the text watermark in hexadecimal format. The default value is "#FFFFFF" (white).

fonts

An optional parameter that allows you to select the font for the text watermark. It provides a list of available fonts from which you can choose.

Add Watermark Output Parameters:

image

The output is the image with the applied watermark. This parameter returns the final watermarked image, which can be used for display or further processing.

Add Watermark Usage Tips:

  • To ensure your watermark is visible but not intrusive, experiment with the opacity setting to find the right balance.
  • Use the scale parameter to adjust the size of your watermark, especially if you are working with images of varying resolutions.

Add Watermark Common Errors and Solutions:

"RGB图像和mask图像的大小必须相同"

  • Explanation: This error occurs when the size of the watermark image does not match the size of the mask image.
  • Solution: Ensure that both the watermark image and the mask image are of the same dimensions before applying them.

"Font file not found"

  • Explanation: This error may occur if the specified font file is not available in the designated fonts directory.
  • Solution: Verify that the font file exists in the specified directory and that the file name is correctly spelled.

Add Watermark Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MingNodes
RunComfy

© Copyright 2024 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.