Skip to content

Commit

Permalink
Merge pull request #71 from xmakro/master
Browse files Browse the repository at this point in the history
Upgrade to image 0.25
  • Loading branch information
constantoine authored Jul 24, 2024
2 parents 5697237 + 053c23a commit ba86c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qrcodegen-image/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ base64 = ["dep:base64"]

[dependencies]
qrcodegen = "1.8"
image = { version = "0.24", features = ["png"], default-features = false}
image = { version = "0.25", features = ["png"], default-features = false}
base64 = { version = "0.22", optional = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion qrcodegen-image/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub fn draw_png(text: &str) -> Result<Vec<u8>, String> {
&canvas.into_raw(),
image_size,
image_size,
image::ColorType::L8,
image::ExtendedColorType::L8,
) {
Ok(_) => Ok(vec),
Err(err) => Err(err.to_string()),
Expand Down

0 comments on commit ba86c74

Please sign in to comment.