Add EXIF-based rename template variables
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user