mirror of https://git.asonix.dog/asonix/pict-rs
15 lines
370 B
Rust
15 lines
370 B
Rust
use actix_web::web::Bytes;
|
|
|
|
use crate::{
|
|
exiftool::ExifError,
|
|
process::{Process, ProcessRead},
|
|
};
|
|
|
|
#[tracing::instrument(level = "trace", skip_all)]
|
|
pub(crate) fn clear_metadata_bytes_read(
|
|
input: Bytes,
|
|
timeout: u64,
|
|
) -> Result<ProcessRead, ExifError> {
|
|
Ok(Process::run("exiftool", &["-all=", "-", "-out", "-"], &[], timeout)?.bytes_read(input))
|
|
}
|