Loading Images
Load
Walks a directory of images recursively, loading them into the workspace.
During the load process, images are validated and attributes are extracted. Images are hardlinked into _beprepared/objects
to track their contents properly while avoiding taking up additional disk space.
beprepared currently assumes that images are immutable. This is something we plan to work on, but for now, if you edit an image after processing in beprepared, consider changing the filename before re-processing that dataset so that beprepared picks up the changes.
Parameters
dir
: The directory to walk for images
Output properties
image.original_path
: The original path of the imageimage.objectid
: The sha256 hash of the imageimage.ext
: The extension of the imageimage.width
: The width of the imageimage.height
: The height of the imageimage.format
: The format of the image, as determined by thePIL
library (e.g.JPEG
,PNG
,WEBP
, etc.)
Example
Load(.) >> ... other nodes ...