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