From aff97e4032f92dee179af91fbc3fb5710f25b39d Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Sat, 27 Apr 2024 11:12:13 +0300 Subject: [PATCH] Update image crate --- Cargo.toml | 2 +- src/service/media/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3b282027..88383391 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,7 @@ reqwest = { version = "0.11.18", default-features = false, features = ["rustls-t # Used for conduit::Error type thiserror = "1.0.40" # Used to generate thumbnails for images -image = { version = "0.24.6", default-features = false, features = ["jpeg", "png", "gif"] } +image = { version = "0.25", default-features = false, features = ["jpeg", "png", "gif"] } # Used to encode server public key base64 = "0.22" # Used when hashing the state diff --git a/src/service/media/mod.rs b/src/service/media/mod.rs index fc8fa569..0340ab49 100644 --- a/src/service/media/mod.rs +++ b/src/service/media/mod.rs @@ -192,7 +192,7 @@ impl Service { let mut thumbnail_bytes = Vec::new(); thumbnail.write_to( &mut Cursor::new(&mut thumbnail_bytes), - image::ImageOutputFormat::Png, + image::ImageFormat::Png, )?; // Save thumbnail in database so we don't have to generate it again next time