Image Logger
This function block saves incoming image frames to disk with configurable file naming, format and storage limits. Use it to capture and archive images when a trigger signal is received, or to periodically dump images for inspection.
π₯ Inputs
Folder Path - Destination folder where images will be saved. Provide a valid path.
File Name - Optional file name. If empty, a timestamp-based name will be used.
Image Limit - Optional maximum number of images to keep in the folder. When the limit is exceeded, the oldest images are removed.
Input Image - Image data to be saved. Connect any image-producing block to this input.
Trigger - Boolean trigger that controls saving. When the trigger condition is active, the image will be written according to the configured settings.
π€ Outputs
This function block does not produce any outputs.
πΉοΈ Controls
Save Mode - Dropdown control to choose between Full Size (PNG) and Compressed (JPEG) saving modes. Compressed mode reduces file size at the cost of quality.
π¨ Features
Automatic timestamp naming when
File Nameis not provided.Optional image compression to reduce disk usage.
Folder image count limit with automatic deletion of oldest files to enforce the limit.
Works with any incoming image source (cameras, loaders, or processed images).
Clear error and info messages are logged when saving succeeds or fails.
π Usage Instructions
Set the destination by providing
Folder Pathor use a block that supplies it.Optionally provide a
File Name; leave empty to use an automatic timestamp name.Optionally set
Image Limitto control how many images are kept in the folder.Connect an image source to
Input Image.Use
Triggerto control when images are written. Toggle the trigger to save the current image.Choose the desired
Save Modefor PNG or compressed JPEG output.
π Evaluation
When the block receives a valid Input Image and the Trigger condition is satisfied, it attempts to save the image to the provided Folder Path using the chosen Save Mode. If the folder contains more images than Image Limit, the oldest files are removed to respect the limit. Informational messages indicate success; error messages explain failures (invalid path, write permissions, etc.).
π‘ Tips and Tricks
Use
Choose Folderto let users visually pick the target folder and feed it intoFolder Path.Use
Date-Time(timestamp) together withFile Nameto create human-readable names for chronological sorting.Preview images before saving by sending the same image to
Show Imageso you can inspect frames visually.Reduce disk usage by adding an
Image Resizerbefore this block to downscale very large images prior to saving.When capturing from live sources, combine with
Camera USB,Camera IP (ONVIF), orStream Readeras the image provider to archive frames from cameras or streams.If you need structured metadata alongside files, send detection/measurement outputs to
CSV Exportto log details (file name, timestamp, counts).Use
File/Folder Operationsto create folders or manage saved files programmatically before or after logging.For application flows that write multiple images at once, consider
Multi Image WriteorImage Writeblocks as alternatives when you need different naming or trigger behaviour.
π οΈ Troubleshooting
Invalid folder errors: check that
Folder Pathexists and the application has write permissions. UseFile/Folder Operationsto create required folders first.No image saved: verify that
Input Imageis connected and thatTriggeris active when you expect a save.Images accumulate too many files: set a reasonable
Image Limitor run a cleanup routine usingFile/Folder Operations.Large files slow down saving: switch
Save ModetoCompressedor add anImage Resizerupstream.If filenames collide, include a timestamp (via
Date-Time) or an index to ensure unique names.
Last updated
Was this helpful?