Update crate image to the version 0.25.0
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pierre Hubert 2024-03-25 10:47:31 +01:00
parent 3c4c670fc6
commit 619d2615b0
3 changed files with 674 additions and 194 deletions

864
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ categories = [ "command-line-utilities", "filesystem", "multimedia" ]
[dependencies]
anyhow = "1.0.81"
id3 = "1.13.1"
image = "0.24.8"
image = "0.25.0"
structopt = { version = "0.3.26", default-features = false }
[dev-dependencies]

View File

@ -38,7 +38,7 @@ pub fn embed_image_from_memory(
let mut encoded_image_bytes = Cursor::new(Vec::new());
// Unwrap: Writing to a Vec should always succeed;
image
.write_to(&mut encoded_image_bytes, image::ImageOutputFormat::Jpeg(90))
.write_to(&mut encoded_image_bytes, image::ImageFormat::Jpeg)
.unwrap();
tag.add_frame(id3::frame::Picture {