diff --git a/Cargo.lock b/Cargo.lock index 2c211d248..2e89b560b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -197,7 +197,7 @@ dependencies = [ "futures-util", "gloo-timers", "half", - "image 0.24.9", + "image 0.25.1", "itertools 0.12.1", "log", "once_cell", @@ -256,7 +256,7 @@ dependencies = [ "either", "futures-core", "gltf-json", - "image 0.24.9", + "image 0.25.1", "itertools 0.12.1", "log", "once_cell", @@ -2791,7 +2791,6 @@ dependencies = [ "byteorder", "color_quant", "num-traits", - "png", ] [[package]] @@ -5687,7 +5686,7 @@ dependencies = [ "futures-core", "futures-util", "glam 0.24.2", - "image 0.24.9", + "image 0.25.1", "imgref", "itertools 0.12.1", "mint", diff --git a/Cargo.toml b/Cargo.toml index d13b7694c..01a88aadb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,7 +78,7 @@ futures-util = { version = "0.3.28", default-features = false, features = ["allo gilrs = { version = "0.10.4" } gloo-timers = { version = "0.3.0", default-features = false } hashbrown = { version = "0.14.0", default-features = false, features = ["ahash", "inline-more"] } -image = { version = "0.24.6", default-features = false } +image = { version = "0.25.1", default-features = false } imgref = "1.10.1" indoc = "2.0.1" itertools = { version = "0.12.0", default-features = false, features = ["use_alloc"] } diff --git a/all-is-cubes-port/src/gltf/texture.rs b/all-is-cubes-port/src/gltf/texture.rs index b0b41f530..a775e0d4a 100644 --- a/all-is-cubes-port/src/gltf/texture.rs +++ b/all-is-cubes-port/src/gltf/texture.rs @@ -54,7 +54,7 @@ impl GltfTextureAllocator { // `image` wants `Write + Seek` but `w` is not currently `Seek` let mut tmp = io::Cursor::new(Vec::new()); image - .write_to(&mut tmp, image::ImageOutputFormat::Png) + .write_to(&mut tmp, image::ImageFormat::Png) .expect("failed to write image to in-memory buffer"); w.write_all(tmp.into_inner().as_slice())?; Ok(()) diff --git a/all-is-cubes-wasm/Cargo.lock b/all-is-cubes-wasm/Cargo.lock index 0546c9b67..36e419ca8 100644 --- a/all-is-cubes-wasm/Cargo.lock +++ b/all-is-cubes-wasm/Cargo.lock @@ -393,12 +393,6 @@ dependencies = [ "unicode-width", ] -[[package]] -name = "color_quant" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" - [[package]] name = "com" version = "0.6.0" @@ -940,13 +934,12 @@ dependencies = [ [[package]] name = "image" -version = "0.24.9" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d" +checksum = "fd54d660e773627692c524beaad361aca785a4f9f5730ce91f42aabe5bce3d11" dependencies = [ "bytemuck", "byteorder", - "color_quant", "num-traits", "png", ]