Fix cleanup, template, and watermark bugs

This commit is contained in:
2026-03-07 22:27:37 +02:00
parent f471d22767
commit 5ed5f3a1d5
4 changed files with 40 additions and 12 deletions

View File

@@ -40,9 +40,15 @@ pub fn apply_template_full(
result = result.replace("{counter}", &counter.to_string());
}
if let Some((w, h)) = dimensions {
result = result.replace("{width}", &w.to_string());
result = result.replace("{height}", &h.to_string());
match dimensions {
Some((w, h)) => {
result = result.replace("{width}", &w.to_string());
result = result.replace("{height}", &h.to_string());
}
None => {
result = result.replace("{width}", "0");
result = result.replace("{height}", "0");
}
}
// {date} - today's date