Unable to Display Images in Neovim Using `ueberzug` on macOS
Hi, I had a issue when trying to install image.nvim on my mac and I need some help:
I've tested on both iTerm2 and WezTerm, so it probably not related to the emulator.
I've download the minimal-setup.lua (and I change the backend to ueberzug) and start it with nvim --clean -c ":luafile minimal-setup.lua", here's what I got:
I put the ImageReport here for reference
Details
image.nvim report
Make sure you don't leak any personal information before sharing this report.
System Information
OS: Darwin
Neovim: 0.10.3
Process Tree: nvim(90651) <- nvim(90647) <- /bin/zsh(97825) <- zsh(qterm)(97817) <- login(97816) <- /Users/inkfin/Library/ApplicationSupport/iTerm2/iTermServer-3.5.10(2502) <- /Applications/iTerm.app/Contents/MacOS/iTerm2(1078)
TERM: xterm-256color
Plugin Configuration
{
"hijack_file_patterns": {
1: "*.png",
2: "*.jpg",
3: "*.jpeg",
4: "*.gif",
5: "*.webp",
6: "*.avif",
},
"editor_only_render_when_focused": false,
"processor": "magick_rock",
"max_height_window_percentage": 50,
"tmux_show_only_in_active_window": false,
"backend": "ueberzug",
"scale_factor": 1,
"max_width_window_percentage": 100,
"integrations": {
"markdown": {
"filetypes": {
1: "markdown",
2: "vimwiki",
},
"enabled": true,
"clear_in_insert_mode": false,
"download_remote_images": true,
"only_render_image_at_cursor": false,
},
"typst": {
"enabled": true,
},
"css": {
"enabled": false,
},
"html": {
"enabled": false,
},
"syslang": {
"enabled": true,
},
"neorg": {
"enabled": true,
},
},
"kitty_method": "normal",
"window_overlap_clear_enabled": false,
"window_overlap_clear_ft_ignore": {
1: "cmp_menu",
2: "cmp_docs",
3: "scrollview",
4: "scrollview_sign",
},
}
Processor Information
Active Processor: magick_rock
Magick Rock Available: true
Magick Rock Version: 1.6.0
Backend Information
Active Backend: ueberzug
Backend Features: {
crop = false
}
Images
ID: 1000:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb02
Dimensions: 603x141
Window: 1000
Buffer: 2
Rendered: true
ID: 1002:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb02
Dimensions: 603x141
Window: 1002
Buffer: 2
Rendered: true
then I open ueberzugpp log and I found this:
The ueberzugpp log
_ _ _
| | | | | | _ _
| | | | ___| |__ ___ _ __ _____ _ __ _ _| |_ _| |_
| | | |/ _ \ '_ \ / _ \ '__|_ / | | |/ _` |_ _|_ _|
| |_| | __/ |_) | __/ | / /| |_| | (_| | |_| |_|
\___/ \___|_.__/ \___|_| /___|\__,_|\__, |
__/ |
|___/ v2.9.6
[2024-12-29 17:26:05.772] [terminal] [info] TERM = xterm-256color
[2024-12-29 17:26:05.772] [terminal] [info] TERM_PROGRAM = iTerm.app
[2024-12-29 17:26:05.772] [terminal] [debug] stat failed (No such file or directory) for pty /dev/ttys16777215, pid 1078, ignoring
[2024-12-29 17:26:05.772] [terminal] [debug] stat failed (No such file or directory) for pty /dev/ttys16777215, pid 2502, ignoring
[2024-12-29 17:26:05.772] [terminal] [debug] stat failed (No such file or directory) for pty , pid 20417, ignoring
[2024-12-29 17:26:05.772] [terminal] [info] PTY = /dev/ttys005
[2024-12-29 17:26:05.772] [terminal] [debug] ioctl sizes: COLS=93 ROWS=25 XPIXEL=837 YPIXEL=575
[2024-12-29 17:26:05.772] [terminal] [debug] iterm2 is supported
[2024-12-29 17:26:05.772] [terminal] [debug] padding_horiz=0 padding_vert=0
[2024-12-29 17:26:05.772] [terminal] [debug] font_width=9 font_height=23
[2024-12-29 17:26:05.772] [main] [debug] Wayland support not compiled in the binary
[2024-12-29 17:26:05.772] [main] [debug] X11 support not compiled in the binary
[2024-12-29 17:26:05.772] [iterm2] [info] Canvas created
[2024-12-29 17:26:05.772] [main] [info] Listening for commands on socket /var/folders/dz/ks_xmzgx60v0vs35cs4ll2vh0000gn/T//ueberzugpp-15492.socket
[2024-12-29 17:26:27.794] [main] [info] Command received: {"action":"add","height":5,"identifier":"1000:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb01","path":"/var/folders/dz/ks_xmzgx60v0vs35cs4ll2vh0000gn/T/nvim.inkfin/Q3aT7y/0/MTAwMDoyOjI6NTEzZGVlZGJlNjZjZTY2MWJkNDExYzE3OTA5ZjQ2NTg2NDA5MjRhOWEwNzAxNmQxYTc0OGE1M2QxYjE2ZWIwMg==-resized-495-115.png","width":55,"x":8,"y":16}
[2024-12-29 17:26:27.807] [vips] [info] loading file /var/folders/dz/ks_xmzgx60v0vs35cs4ll2vh0000gn/T/nvim.inkfin/Q3aT7y/0/MTAwMDoyOjI6NTEzZGVlZGJlNjZjZTY2MWJkNDExYzE3OTA5ZjQ2NTg2NDA5MjRhOWEwNzAxNmQxYTc0OGE1M2QxYjE2ZWIwMg==-resized-495-115.png
[2024-12-29 17:26:27.807] [vips] [debug] Failed to process image animation
[2024-12-29 17:26:27.809] [iterm2] [info] Displaying image with id 1000:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb01
to test it out I run ueberzug layer with the command in log, and it displays correctly outside neovim
I've spent hours debugging this issue and I'm stuck with this. Is there something I'm missing, or are there specific configurations required to make ueberzug work within Neovim?
Don't forget to configure image.nvim
Hey, can you check the instructions added here? https://github.com/3rd/image.nvim/pull/270
Hey, can you check the instructions added here? https://github.com/3rd/image.nvim/pull/270
I wanted to recommend that but ueberzug works in their terminal, so it can't be that
Got it, going to debug it on a mac this weekend.
Got it, going to debug it on a mac this weekend.
I also added a comment in my PR
Same problem, hopefully a quick fix. But my platform is Linux (Ubuntu 24.04)
Same issue here on macos
Same issue here, I also tried modify the minimal startup to use backend = "iterm2", processor = "magick_cli".
I've raised an issue requesting help, but discovered this one. Perhaps this just isn't working for anyone? https://github.com/3rd/image.nvim/issues/315
Hopefully fixed for y'all in #316
Thanks a lot for the quick fix! It’s now working perfectly on my end.