Skip to main content Module batch Copy item path Source BatchContext ๐ Pre-derived runner state for batch operations. BatchResult Result of processing a single image in a batch. BatchRun Shared configuration for a batch run: where to read and write, how many
workers to use, and how to encode each output. Bundles the parameters common
to batch-apply and batch-edit so the public runners take a few named fields
instead of a long positional list (which is easy to transpose as more
encode-side knobs are added). 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.