Multi Image Write
This function block saves multiple images to disk when a write condition is active. It supports optional compression and accepts a folder path and filename template to organize saved files.
π₯ Inputs
Folder Path input socket Provide full folder path where images will be saved.
File Name input socket Provide base file name (without extension). A timestamp or custom text can be used.
Write Condition input socket Boolean trigger that starts the save operation when True.
Input Images input socket Accepts one or multiple images (list). Each image will be saved as a separate file.
π€ Outputs
This function block does not produce any outputs.
πΉοΈ Controls
Compress Image? Checkbox When enabled, images are saved as JPEG with reduced quality for smaller file size. When disabled, images are saved as PNG (lossless).
π¨ Features
Save many images at once using a single action.
Optional JPEG compression to reduce storage usage.
Customizable folder and base file name to organize saved files.
Logs success or error messages for each saved file.
π Usage Instructions
Provide a path to
Folder Path(or use a folder selection block upstream).Set a base name in
File Name. Use a time string or a counter to avoid collisions.Connect a boolean signal to
Write Condition; set it to True to trigger saving.Feed one or more images into
Input Images. Each image will be written to disk with the base name and an index suffix.Toggle
Compress Image?if you prefer JPEG compression over PNG.
π Evaluation
When the Write Condition is True and valid inputs are present, the block attempts to save each image in the provided list. Successful saves are logged; failures report an error (for example when the folder is invalid or disk write fails).
π‘ Tips and Tricks
Use
Choose Folderto let users pick the save location interactively and feed its output toFolder Path.Combine with
Date-Timeto generate unique file names automatically (e.g., timestamp inFile Name).If you need to preview images before saving, send them to
Show Imagefirst.Reduce image size before saving to save space and speed up writes by using
Image ResizeorImage Resizerupstream.For saving multiple related images as a single visual summary, create a montage with
Collage Imagesand then save the collage.If you also need continuous logging of frames, consider pairing with
Image Loggerfor automatic archival workflows.
π οΈ Troubleshooting
Invalid folder errors: check that
Folder Pathexists and is writable. UseChoose Folderto avoid typos.No images saved: ensure
Input Imagesis connected andWrite Conditionis True at the evaluation moment.Corrupted or unexpected file formats: toggle
Compress Image?to switch between JPEG and PNG and verify downstream compatibility.Large number of images slows the system: resize images with
Image Resizebefore writing or enable compression to reduce disk I/O.
Last updated
Was this helpful?