mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-05-28 16:38:08 +00:00
19 lines
442 B
Rust
19 lines
442 B
Rust
use actix_web::web::Bytes;
|
|
|
|
use crate::{
|
|
bytes_stream::BytesStream,
|
|
exiftool::ExifError,
|
|
process::{Process, ProcessRead},
|
|
};
|
|
|
|
#[tracing::instrument(level = "trace", skip_all)]
|
|
pub(crate) fn clear_metadata_bytes_read(
|
|
input: BytesStream,
|
|
timeout: u64,
|
|
) -> Result<ProcessRead, ExifError> {
|
|
Ok(
|
|
Process::run("exiftool", &["-all=", "-", "-out", "-"], &[], timeout)?
|
|
.bytes_stream_read(input),
|
|
)
|
|
}
|