Skip to content

Commit

Permalink
Bump image from 0.24.9 to 0.25.2 (#1396)
Browse files Browse the repository at this point in the history
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
  • Loading branch information
musicinmybrain and o2sh authored Nov 10, 2024
1 parent 2172262 commit cd66f36
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 102 deletions.
135 changes: 35 additions & 100 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ members = ["ascii", "image", "manifest"]
owo-colors = "3.5.0"
anyhow = "1.0"
clap = { version = "4.5.20", features = ["derive"] }
image = "0.24.9"
image = { version = "0.25.2", default-features = false, features = [
"color_quant",
"jpeg",
"png",
"webp"
] }
strum = { version = "0.26.3", features = ["derive"] }

[package]
Expand Down
2 changes: 1 addition & 1 deletion image/src/iterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl super::ImageBackend for ITermBackend {
let image_rows = height_ratio * f64::from(image.height());

let mut bytes: Vec<u8> = Vec::new();
image.write_to(&mut Cursor::new(&mut bytes), image::ImageOutputFormat::Png)?;
image.write_to(&mut Cursor::new(&mut bytes), image::ImageFormat::Png)?;
let encoded_image = engine::general_purpose::STANDARD.encode(bytes);
let mut image_data = Vec::<u8>::new();

Expand Down

0 comments on commit cd66f36

Please sign in to comment.