Skip to main contentModule batch
Source - BatchContext ๐
- Pre-derived runner state for batch operations.
- BatchResult
- Result of processing a single image in a batch.
- BatchSummary
- Summary of a batch run.
- STANDARD_EXTENSIONS ๐
- Standard (non-raw) image file extensions recognized by the CLI.
- collect_images ๐
- Recursively (or not) collect image file paths from
dir into out. - discover_images
- Scan
dir for image files, optionally recursing into subdirectories.
Returns a sorted Vec<PathBuf> of discovered image files. - is_image_file ๐
- Returns
true if path has a standard image extension or a known raw extension. - num_cpus ๐
- Get the number of available CPU cores.
- process_single ๐
- Process a single image: decode, configure engine via closure, render, encode.
- report_progress ๐
- Print progress for a completed image. Thread-safe via atomic counter.
- resolve_output_path
- Resolve the output path for a processed image.
- run_batch ๐
- Generic batch processing: discover images, process in parallel, summarize.
- run_batch_apply
- Run batch-apply: apply a preset to all images in a directory, in parallel.
- run_batch_edit
- Run batch-edit: apply inline parameters to all images in a directory, in parallel.
- summarize
- Summarize batch results and print to stderr.