-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images not displayed #7
Comments
Hey, glad you're interested and thanks for the detailed description! Could you try the minimal graphics example? Just make a #!/usr/bin/env bash
transmit_png() {
data=$(base64 "$1")
data="${data//[[:space:]]/}"
builtin local pos=0
builtin local chunk_size=4096
while [ "$pos" -lt ${#data} ]; do
builtin printf "\e_G"
[ "$pos" = "0" ] && printf "a=T,f=100,"
builtin local chunk="${data:$pos:$chunk_size}"
pos=$(($pos + $chunk_size))
[ "$pos" -lt ${#data} ] && builtin printf "m=1"
[ ${#chunk} -gt 0 ] && builtin printf ";%s" "$chunk"
builtin printf "\e\\"
done
}
transmit_png "$1" And pass an image to it: Just to rule out Kitty, I think the icat kitten is a bit special, but hopefully test.sh won't work and we could have our answer. I'm on Kitty 0.28.1, which version are you using? |
The version was the issue! I was on kitty 0.27.1 on Mac, and even older on Linux. I upgraded my packages before this, but I didn't notice that I actually had a local install of an old version in my PATH that prevented it from taking effect >.< Thanks for the help! If there is a known minimal version of kitty required (0.28?), it might be a good idea to mention it in the requirements section of the README. I'm really excited to see where this project goes. It's already a massive step up from hologram.nvim! |
Glad it works! |
Hi, super exciting to see some progress on the images-in-vim front! This is something I've been wanting for quite some time now. I installed and tried it out, but no matter what I do I can't seem to get the images to show up.
Some things I've tried:
magick
rock is installed and in my rtpkitty +kitten icat <image>
does show the image in the terminalnvim --clean -c ":luafile minimal-setup.lua"
I created a minimal repro config file
And if I run it with
nvim -u repro.lua
on the test fileit reproduces the issue. No images.
Any ideas what's going on?
The text was updated successfully, but these errors were encountered: