Upgrade to image 0.25
diff --git a/qrcodegen-image/Cargo.toml b/qrcodegen-image/Cargo.toml
index 2221261..8cba9f4 100644
--- a/qrcodegen-image/Cargo.toml
+++ b/qrcodegen-image/Cargo.toml
@@ -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]
diff --git a/qrcodegen-image/src/lib.rs b/qrcodegen-image/src/lib.rs
index 3ef4cc4..00cfe2a 100644
--- a/qrcodegen-image/src/lib.rs
+++ b/qrcodegen-image/src/lib.rs
@@ -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()),