Write Date On Image
This function block writes the current date and time as text onto an incoming image. It provides flexible controls for font, size, position, color and an optional background for better readability. Use this block when you need timestamped images for logging, recording or visual feedback.
π₯ Inputs
Image Any Image to receive the date overlay (any color/depth image).
π€ Outputs
Image Any Image with the date/time text drawn on it.
πΉοΈ Controls
Font Scale Adjusts the relative size of the date text. This value scales automatically with image dimensions so the text remains proportional.
Horizontal Position Move the text left-to-right across the image (normalized slider).
Vertical Position Move the text top-to-bottom across the image (normalized slider).
Font Thickness Change the stroke thickness of the text.
Text Background Toggle a filled background rectangle behind the text to improve contrast and readability.
Font Choose the text style from available font options (e.g., Simplex, Duplex, Script).
Color Select the text color from a preset palette.
π¨ Features
Adjustable, image-aware font scaling so text size adapts to different image resolutions.
Precise placement using horizontal and vertical normalized sliders.
Multiple font styles and color presets for quick configuration.
Optional translucent background box behind text for high contrast on busy scenes.
Real-time preview when the block is executed so you can fine tune placement and visibility.
π Usage Instructions
Connect an image-producing block to the
Image Anyinput.Adjust
Font Scale,Horizontal PositionandVertical Positionto place the timestamp where you want it.Pick a
FontandColorthat are visible over your image.Optionally enable
Text Backgroundto ensure legibility on complex backgrounds.Run the flow; the block outputs the image with the current date/time applied.
The written timestamp uses a compact date-time format (date and time combined) so it is suitable for file names and quick visual inspection.
π Evaluation
When executed, the block overlays the current date and time text onto the provided image and returns the modified image through its output socket. The overlay is updated each run to reflect the current moment.
π‘ Tips and Tricks
To preview results in the editor UI, connect the output to the
Show Imageblock.If you save many timestamped images, pair this block with
Image LoggerorImage Writeto store images with the overlay applied.For video recording workflows, send the output to
Record Videoso each recorded frame contains the timestamp.When working with very large images, use
Image Resizebefore this block to reduce rendering time while still producing readable text.If you need to overlay other information (IDs, counters) alongside the date, combine this block with blocks that produce text or numbers and apply multiple write/overlay steps.
π οΈ Troubleshooting
Text appears off-image: adjust
Horizontal PositionandVertical Positionto bring the text back into view.Text is hard to read on busy backgrounds: enable
Text Backgroundor choose a contrastingColor.Text too small or too large: tweak
Font Scaleand/orFont Thicknessuntil legible.Slow processing on large images: insert an
Image Resizeblock before this block, then write the date on the resized image or resize back afterward if needed.
Last updated