Write Date On Image

This function block allows you to overlay the current date and time onto an image. It enables customization in terms of font style, size, color, and position, making it a versatile tool for annotating images with timestamps.

📥 Inputs

Image Any An input image on which the date will be written.

📤 Outputs

Image Any The output image with the current date and time overlaid on it.

🕹️ Controls

Font Scale A slider that adjusts the size of the font used to display the date.

Horizontal Position A slider to set the horizontal position of the text overlay, ranging from 0 to 100%.

Vertical Position A slider to set the vertical position of the text overlay, ranging from 0 to 100%.

Font Thickness A slider to control the thickness of the text.

Font A dropdown menu to select the desired font style for the text.

Color A dropdown menu to choose the text color from several predefined options.

🎨 Features

Customizable Text Overlay Users can adjust the font size, thickness, style, and color to fit their needs.

Dynamic Date and Time The block automatically retrieves and displays the current date and time.

User-Friendly Interface Easy-to-use sliders and dropdowns make it simple to customize the overlay.

📝 Usage Instructions

  1. Connect Input Image: Link an image to the Image Any input.

  2. Set Font and Color: Choose your desired font style and color using the dropdown menus.

  3. Adjust Text Properties: Use the sliders to adjust the font scale, position (horizontal and vertical), and thickness.

  4. Evaluate the Block: Run the block to overlay the current date and time on the input image and obtain the modified image.

📊 Evaluation

Upon executing this function block, it processes the input image to display the current date and time, providing an annotated output image.

💡 Tips and Tricks

Using Contrasting Colors

Ensure that the text color contrasts well with the background of the image for better visibility. For dark images, bright colors like white or yellow may be effective.

Font Selection

Experiment with different font styles to match the aesthetic of your image. For example, a script font can add a more festive feel to personal photos.

Testing with Different Resolutions

Adjust the font size according to the image resolution to ensure optimal size and readability. Scaling the font proportionally can help maintain consistent appearance across varying image sizes.

🛠️ Troubleshooting

Text Not Appearing

If the text overlay does not appear, check the chosen color against the background. Ensure there is adequate contrast for visibility.

Incorrect Text Position

If the text appears outside of the image boundaries, adjust the position sliders (horizontal and vertical) to fit the visible area.

Last updated