diff --git a/quickpeep_raker/src/bin/qp-rake1.rs b/quickpeep_raker/src/bin/qp-rake1.rs index bd004bd..e609408 100644 --- a/quickpeep_raker/src/bin/qp-rake1.rs +++ b/quickpeep_raker/src/bin/qp-rake1.rs @@ -14,7 +14,7 @@ use reqwest::header::{HeaderMap, HeaderValue, USER_AGENT}; use reqwest::redirect::Policy; use reqwest::Url; use std::collections::BTreeSet; -use std::path::PathBuf; +use std::path::{Path, PathBuf}; use tokio::fs::File; pub const ADBLOCK_FILTER_PATHS: [(AnalysisAntifeatures, &'static str); 4] = [ @@ -136,6 +136,9 @@ pub async fn main() -> anyhow::Result<()> { cyan_ln!("{} bytes", icon.original_size_in_bytes); blue!("\tPacked size: "); cyan_ln!("{} bytes", icon.webp_bytes.len()); + + std::fs::write(Path::new("/tmp/qp-rake1.webp"), &icon.webp_bytes)?; + println!("\n(saved as /tmp/qp-rake1.webp!)"); } }