From 72e019adad8c6372dc6022daa01811b4a8d32aa2 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 23 Feb 2023 20:44:35 -0500 Subject: [PATCH] [F] Fix thumbnailer %i variable --- backend/src/thumbnailer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/thumbnailer.rs b/backend/src/thumbnailer.rs index b016df8..42b78f9 100644 --- a/backend/src/thumbnailer.rs +++ b/backend/src/thumbnailer.rs @@ -48,6 +48,7 @@ impl Thumbnailer { let cmd = self.exec .replace("%s", &*format!("'{pixels}'")) .replace("%u", &shlex::quote(orig)) + .replace("%i", &shlex::quote(orig)) .replace("%o", &shlex::quote(new)); let args: Vec = Shlex::new(&*cmd).collect(); let out = Command::new(args[0].to_owned()).args(&args[1..]).output()?;