mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-06-09 00:39:37 +00:00
14 lines
400 B
Rust
14 lines
400 B
Rust
use actix_web::web::Bytes;
|
|
|
|
use crate::{exiftool::ExifError, process::Process, read::BoxRead};
|
|
|
|
#[tracing::instrument(level = "trace", skip(input))]
|
|
pub(crate) fn clear_metadata_bytes_read(
|
|
input: Bytes,
|
|
timeout: u64,
|
|
) -> Result<BoxRead<'static>, ExifError> {
|
|
let process = Process::run("exiftool", &["-all=", "-", "-out", "-"], timeout)?;
|
|
|
|
Ok(Box::pin(process.bytes_read(input)))
|
|
}
|