Skip to content

Commit

Permalink
Update image to 0.25 (#37)
Browse files Browse the repository at this point in the history
* image 0.25 support

* back to version 5.0.0
  • Loading branch information
frederik-uni authored Jun 11, 2024
1 parent a5d3379 commit 8c56257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["image", "identicon", "avatar"]
categories = ["graphics", "multimedia::images", "value-formatting", "visualization"]

[dependencies]
image = "0.24"
image = "0.25"
sha3 = "0.10"
thiserror = "1.0"

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl Identicon {
image.to_rgb8().into_raw().as_slice(),
image_size,
image_size,
image::ColorType::Rgb8,
image::ExtendedColorType::Rgb8,
)
.map_err(|_| error::IdenticonError::EncodeImageError)?;
Ok(buffer)
Expand All @@ -248,7 +248,7 @@ impl Identicon {
image.to_rgb8().into_raw().as_slice(),
image_size,
image_size,
image::ColorType::Rgb8,
image::ExtendedColorType::Rgb8,
)
.map_err(|_| error::IdenticonError::EncodeImageError)?;
Ok(buffer)
Expand Down

0 comments on commit 8c56257

Please sign in to comment.