ComfyUI  >  Nodes  >  HivisionIDPhotos-ComfyUI >  AddWaterMarkNode

ComfyUI Node: AddWaterMarkNode

Class Name

AddWaterMarkNode

Category
AIFSH_HivisionIDPhotos
Author
AIFSH (Account age: 345 days)
Extension
HivisionIDPhotos-ComfyUI
Latest Updated
9/16/2024
Github Stars
0.1K

How to Install HivisionIDPhotos-ComfyUI

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

AddWaterMarkNode Description

Seamlessly integrate text watermarks in images with striped or central styles, customizable for protection and credit.

AddWaterMarkNode:

The AddWaterMarkNode is designed to seamlessly integrate watermarks into your images, providing a professional touch to your digital artwork. This node allows you to add text-based watermarks in two distinct styles: striped and central. The striped style repeats the watermark text diagonally across the image, while the central style places the watermark text prominently in the center. This node is highly customizable, enabling you to adjust the text size, color, opacity, angle, and spacing to suit your artistic needs. By using this node, you can protect your digital creations from unauthorized use and ensure that your work is always credited.

AddWaterMarkNode Input Parameters:

image

This parameter accepts the input image to which the watermark will be added. The image should be in a format compatible with the PIL library, such as PNG or JPEG. The quality and resolution of the input image will directly affect the final output.

text

This parameter specifies the text to be used as the watermark. The text will be rendered onto the image according to the chosen style and other settings. Ensure that the text is concise and relevant to your watermarking needs.

style

This parameter determines the style of the watermark. It accepts two options: "STRIPED" for a diagonally repeated watermark and "CENTRAL" for a centrally placed watermark. The choice of style will affect the visual impact and coverage of the watermark on the image.

angle

This parameter sets the rotation angle of the watermark text. It accepts values from 0 to 360 degrees, with a default value of 30 degrees. Adjusting the angle can help integrate the watermark more naturally into the image's composition.

color

This parameter defines the color of the watermark text. It accepts color values in hexadecimal format (e.g., "#8B8B1B"). Choosing a color that contrasts well with the image background will ensure the watermark is visible and effective.

opacity

This parameter controls the transparency of the watermark text. It accepts values from 0 (completely transparent) to 1 (completely opaque), with a default value of 0.15. Adjusting the opacity allows you to balance the visibility of the watermark with the underlying image.

size

This parameter sets the font size of the watermark text. It accepts values from 10 to 100, with a default value of 50. The size of the text will affect its readability and prominence on the image.

space

This parameter determines the spacing between repeated instances of the watermark text in the striped style. It accepts values from 10 to 200, with a default value of 75. Adjusting the spacing can help achieve the desired density and coverage of the watermark.

AddWaterMarkNode Output Parameters:

watermarked_image

This parameter provides the final image with the applied watermark. The output image will be in the same format as the input image and will include the watermark text according to the specified settings. This output can be used for further processing or saved directly to disk.

AddWaterMarkNode Usage Tips:

  • Experiment with different angles and opacities to find the best balance between visibility and subtlety for your watermark.
  • Use contrasting colors for the watermark text to ensure it stands out against the image background.
  • Adjust the text size and spacing to achieve the desired coverage and readability of the watermark.
  • Test both the striped and central styles to see which one best suits your artistic needs and the specific image.

AddWaterMarkNode Common Errors and Solutions:

"Invalid image format"

  • Explanation: The input image is not in a format supported by the PIL library.
  • Solution: Ensure that the input image is in a compatible format such as PNG or JPEG.

"Text too long"

  • Explanation: The watermark text exceeds the maximum allowed length.
  • Solution: Shorten the watermark text to fit within the allowed character limit.

"Invalid color value"

  • Explanation: The color value provided is not in a valid hexadecimal format.
  • Solution: Use a valid hexadecimal color code (e.g., "#FFFFFF" for white).

"Opacity out of range"

  • Explanation: The opacity value is outside the accepted range of 0 to 1. - Solution: Adjust the opacity value to be within the range of 0 (completely transparent) to 1 (completely opaque).

"Font size out of range"

  • Explanation: The font size value is outside the accepted range of 10 to 100.
  • Solution: Adjust the font size value to be within the range of 10 to 100.

AddWaterMarkNode Related Nodes

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