Fix cleanup, template, and watermark bugs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user