Update image crate

This commit is contained in:
Ossi Herrala 2024-04-27 11:12:13 +03:00
parent a56139549f
commit aff97e4032
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ reqwest = { version = "0.11.18", default-features = false, features = ["rustls-t
# Used for conduit::Error type # Used for conduit::Error type
thiserror = "1.0.40" thiserror = "1.0.40"
# Used to generate thumbnails for images # 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 # Used to encode server public key
base64 = "0.22" base64 = "0.22"
# Used when hashing the state # Used when hashing the state

View file

@ -192,7 +192,7 @@ impl Service {
let mut thumbnail_bytes = Vec::new(); let mut thumbnail_bytes = Vec::new();
thumbnail.write_to( thumbnail.write_to(
&mut Cursor::new(&mut thumbnail_bytes), &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 // Save thumbnail in database so we don't have to generate it again next time