Skip to main content

resolve_output_path

Function resolve_output_path 

Source
pub fn resolve_output_path(
    input: &Path,
    input_dir: &Path,
    output_dir: &Path,
    suffix: Option<&str>,
    format_ext: Option<&str>,
) -> PathBuf
Expand description

Resolve the output path for a processed image.

Mirrors the subdirectory structure from input_dir into output_dir, appends an optional suffix before the extension, and overrides the extension when format_ext is provided. Raw-format inputs default to .jpg when no explicit format is given.