Add EXIF-based rename template variables

This commit is contained in:
2026-03-06 18:03:12 +02:00
parent 3fd602652a
commit 8edaab0e2b
2 changed files with 122 additions and 1 deletions

View File

@@ -399,12 +399,17 @@ impl PipelineExecutor {
if let Some(ref template) = rename.template {
let dims = Some((img.width(), img.height()));
let new_name = crate::operations::rename::apply_template(
let original_ext = source.path.extension()
.and_then(|e| e.to_str());
let new_name = crate::operations::rename::apply_template_full(
template,
stem,
ext,
rename.counter_start + index as u32,
dims,
original_ext,
Some(&source.path),
None,
);
job.output_dir.join(new_name)
} else {