benjajaja / ratatui-image

Ratatui widget for rendering image graphics in terminals that support it
https://crates.io/crates/ratatui-image
MIT License
86 stars 12 forks source link

Kitty backend doesn't work #29

Closed wizard-28 closed 2 weeks ago

wizard-28 commented 1 month ago

image

Just displays red lines.

I'm using this configuration:

// --snip--
                    let mut picker =
                        Picker::from_termios().unwrap_or_else(|_| Picker::new((7, 14)));

                    picker.guess_protocol();

                    let image_state = picker.new_resize_protocol(dyn_image);

// --snip--
benjajaja commented 1 month ago

Can you run the demo? cargo run --example demo --features crossterm it works on master for me with kitty 0.34.1.

wizard-28 commented 1 month ago

Displays this for me:

image

benjajaja commented 1 month ago

@wizard-28 thank you. What version of kitty are you using? Are you on master? What else could cause this?

wizard-28 commented 2 weeks ago

@wizard-28 thank you. What version of kitty are you using?

λ kitty --version
kitty 0.21.2 created by Kovid Goyal

Are you on master?

I'm on the latest release of both kitty and ratatui-image

What else could cause this?

No idea.

benjajaja commented 2 weeks ago

Kitty 0.21.2 is 3 years old! This crate uses a feature "unicode placeholders" introduced in 0.28.0.