diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 230da83..b3635ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,6 +43,12 @@ async fn main() -> Result<(), Box<dyn Error>> { let output_path = Path::new(&args.path); let tmp_path = output_path.with_extension("png.tmp"); fs::write(&tmp_path, img)?; + + Command::new("mogrify") + .arg("-colorspace") + .arg("gray") + .arg(tmp_path.as_os_str()) + .spawn()?.wait()?; fs::rename(&tmp_path, output_path)?; time::sleep(Duration::from_secs(15)).await; info!("Wrote {}", output_path.display()); |
