Skip to content

Commit 8884c0f

Browse files
authored
Merge pull request #94 from bgreenwell/fix/ratatui-image-9-no-chafa
fix(deps): bump ratatui-image to 9.0 without the chafa system dependency
2 parents 3c5250a + cb6eac2 commit 8884c0f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ arboard = "3.3"
4141
viuer = "0.7"
4242
image = "0.25"
4343
zip = "2.0"
44-
ratatui-image = "8.0"
44+
ratatui-image = { version = "9.0", default-features = false, features = ["image-defaults", "crossterm"] }
4545

4646
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "fs"] }
4747

src/ui.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ impl App {
142142
let picker = if let Ok(p) = Picker::from_query_stdio() {
143143
p
144144
} else {
145-
// Fallback to manual font size
146-
Picker::from_fontsize((8, 16))
145+
// Fallback when the terminal doesn't answer the stdio query
146+
Picker::halfblocks()
147147
};
148148

149149
#[cfg(not(unix))]
150-
let picker = Picker::from_fontsize((8, 16));
150+
let picker = Picker::halfblocks();
151151

152152
// Process all images in the document
153153
for element in &self.document.elements {

0 commit comments

Comments
 (0)