mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-27 21:13:47 +03:00
Update image crate
This commit is contained in:
parent
a56139549f
commit
aff97e4032
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue