[GH-ISSUE #404] Unable show album cover in tmux. #218

Closed
opened 2026-03-02 23:45:36 +03:00 by kerem · 9 comments
Owner

Originally created by @xbunax on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/404

  • Unable show album cover in tmux. Left is tmux, right is iterm2

image

  • I don't know wether this is the problem of spotify_player or the tmux. Like the issue

  • This is my system info

                    'c.          xbunax@MacBook-Air-3.local
                 ,xNMM.          --------------------------
               .OMMMMo           OS: macOS 14.4.1 23E224 arm64
               OMMM0,            Host: Mac14,2
     .;loddo:' loolloddol;.      Kernel: 23.4.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 12 hours, 46 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 1 (port), 238 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.9
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2560x1440
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Amethyst
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    Terminal: iTerm2
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal Font: MesloLGS-NF-Regular 14
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   CPU: Apple M2
    kMMMMMMMMMMMMMMMMMMMMMMd     GPU: Apple M2
     ;KMMMMMMMWXXWMMMMMMMk.      Memory: 2950MiB / 16384MiB
       .cooc,.    .,coo:.
  • the version of spotify_player
spotify_player 0.17.1
Originally created by @xbunax on GitHub (Mar 27, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/404 + Unable show album cover in tmux. Left is `tmux`, right is `iterm2` ![image](https://github.com/aome510/spotify-player/assets/50800571/4a1a81a6-0d6c-4483-a999-008180220a6a) + I don't know wether this is the problem of `spotify_player` or the `tmux`. Like the [issue](https://github.com/ranger/ranger/issues/539) + This is my system info ``` 'c. xbunax@MacBook-Air-3.local ,xNMM. -------------------------- .OMMMMo OS: macOS 14.4.1 23E224 arm64 OMMM0, Host: Mac14,2 .;loddo:' loolloddol;. Kernel: 23.4.0 cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime: 12 hours, 46 mins .KMMMMMMMMMMMMMMMMMMMMMMMWd. Packages: 1 (port), 238 (brew) XMMMMMMMMMMMMMMMMMMMMMMMX. Shell: zsh 5.9 ;MMMMMMMMMMMMMMMMMMMMMMMM: Resolution: 2560x1440 :MMMMMMMMMMMMMMMMMMMMMMMM: DE: Aqua .MMMMMMMMMMMMMMMMMMMMMMMMX. WM: Amethyst kMMMMMMMMMMMMMMMMMMMMMMMMWd. Terminal: iTerm2 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk Terminal Font: MesloLGS-NF-Regular 14 .XMMMMMMMMMMMMMMMMMMMMMMMMK. CPU: Apple M2 kMMMMMMMMMMMMMMMMMMMMMMd GPU: Apple M2 ;KMMMMMMMWXXWMMMMMMMk. Memory: 2950MiB / 16384MiB .cooc,. .,coo:. ``` + the version of `spotify_player` ``` spotify_player 0.17.1 ```
kerem 2026-03-02 23:45:36 +03:00
Author
Owner

@aome510 commented on GitHub (Mar 27, 2024):

I believe it's tmux issue. I remember some terminal emulators, e.g tmux or allacrity, don't support rendering full-resolution images. That said, it's weird to not see anything rendered. What does the image area look like when running tmux inside other terminals than iterm2?

<!-- gh-comment-id:2023802949 --> @aome510 commented on GitHub (Mar 27, 2024): I believe it's `tmux` issue. I remember some terminal emulators, e.g `tmux` or `allacrity`, don't support rendering full-resolution images. That said, it's weird to not see anything rendered. What does the image area look like when running `tmux` inside other terminals than `iterm2`?
Author
Owner

@xbunax commented on GitHub (Mar 28, 2024):

I believe it's tmux issue. I remember some terminal emulators, e.g tmux or allacrity, don't support rendering full-resolution images. That said, it's weird to not see anything rendered. What does the image area look like when running tmux inside other terminals than iterm2?

image

I use kitty to run tmux, but the result is the same

<!-- gh-comment-id:2024300700 --> @xbunax commented on GitHub (Mar 28, 2024): > I believe it's `tmux` issue. I remember some terminal emulators, e.g `tmux` or `allacrity`, don't support rendering full-resolution images. That said, it's weird to not see anything rendered. What does the image area look like when running `tmux` inside other terminals than `iterm2`? <img width="955" alt="image" src="https://github.com/aome510/spotify-player/assets/50800571/77c08f67-8ed0-4825-86c5-4911844cf6fa"> I use `kitty` to run `tmux`, but the result is the same
Author
Owner

@Keep-Simple commented on GitHub (Apr 3, 2024):

+1

<!-- gh-comment-id:2035005893 --> @Keep-Simple commented on GitHub (Apr 3, 2024): +1
Author
Owner

@mdkcore0 commented on GitHub (Apr 4, 2024):

I believe it's tmux issue. I remember some terminal emulators, e.g tmux or allacrity, don't support rendering full-resolution images. That said, it's weird to not see anything rendered. What does the image area look like when running tmux inside other terminals than iterm2?

as aome510 said, it depends on your terminal emulator and tmux; for example, alacritty do not support sixel (there is a build that do enable that), and tmux needs to be compiled with the --enable-sixel flag (was added on version 3.4, maybe this is the issue you are facing here)

finally, spotify-player must be built with image or sixel enabled

this is what it looks likes with the image feature enabled, running on alacritty/tmux (catppuccin-mocha btw? :p):
image

<!-- gh-comment-id:2038034060 --> @mdkcore0 commented on GitHub (Apr 4, 2024): > I believe it's `tmux` issue. I remember some terminal emulators, e.g `tmux` or `allacrity`, don't support rendering full-resolution images. That said, it's weird to not see anything rendered. What does the image area look like when running `tmux` inside other terminals than `iterm2`? as aome510 said, it depends on your terminal emulator and tmux; for example, alacritty do not support sixel (there is a build that do enable that), and tmux needs to be compiled with the `--enable-sixel` flag (was added on version 3.4, maybe this is the issue you are facing here) finally, spotify-player must be built with image or sixel enabled this is what it looks likes with the image feature enabled, running on alacritty/tmux (catppuccin-mocha btw? :p): ![image](https://github.com/aome510/spotify-player/assets/1218078/b5ad7aaf-6e3a-499e-9790-682c82d5e88a)
Author
Owner

@xbunax commented on GitHub (Apr 5, 2024):

--enable-sixel

Interesting, I build tmux and spotify_player with image feature, but the image still disappear wether it's in iterm2 or kitty
image

<!-- gh-comment-id:2038891216 --> @xbunax commented on GitHub (Apr 5, 2024): > --enable-sixel Interesting, I build `tmux` and `spotify_player` with image feature, but the image still disappear wether it's in `iterm2` or `kitty` <img width="1462" alt="image" src="https://github.com/aome510/spotify-player/assets/50800571/6924897b-0bb5-44b8-b01e-7f54ba9a005d">
Author
Owner

@aome510 commented on GitHub (Apr 5, 2024):

I think tmux doesn't support render image in full resolution, image is still rendered when running in terminal that doesn't support full resolution based on @mdkcore0's comment. My guess is that the terminal renders full-resolution image but tmux doesn't know how to handle the image, so it just renders a black screen.

I'll close this issue for now as I'm not sure if there is anything we can do from spotify_player side

<!-- gh-comment-id:2039799311 --> @aome510 commented on GitHub (Apr 5, 2024): I think `tmux` doesn't support render image in full resolution, image is still rendered when running in terminal that doesn't support full resolution based on @mdkcore0's comment. My guess is that the terminal renders full-resolution image but tmux doesn't know how to handle the image, so it just renders a black screen. I'll close this issue for now as I'm not sure if there is anything we can do from `spotify_player` side
Author
Owner

@CalebAnders commented on GitHub (Oct 30, 2024):

i hate to open a closed issue but i did want to comment that yazi can render full images inside of tmux, whereas i too am getting a blank image with iTerm2 and tmux in spotify_player.

<!-- gh-comment-id:2446401082 --> @CalebAnders commented on GitHub (Oct 30, 2024): i hate to open a closed issue but i did want to comment that [yazi](https://github.com/sxyazi/yazi) can render full images inside of tmux, whereas i too am getting a blank image with iTerm2 and tmux in spotify_player.
Author
Owner

@funkycode commented on GitHub (Nov 16, 2024):

using kitty with tmux - the spotify_player will hang if setting TERM to xterm-kitty, while if using tmux-256color it does work but no image support.
while kitty does show properly images inside tmux with no issues.
image

<!-- gh-comment-id:2480528337 --> @funkycode commented on GitHub (Nov 16, 2024): using kitty with tmux - the spotify_player will hang if setting `TERM` to `xterm-kitty`, while if using `tmux-256color` it does work but no image support. while kitty does show properly images inside tmux with no issues. ![image](https://github.com/user-attachments/assets/0c621471-7499-4daa-a2f9-650f249d75e8)
Author
Owner

@leto-ux commented on GitHub (Nov 17, 2024):

same issue as @funkycode
set -g default-terminal "xterm-kitty"
image

set -g default-terminal "tmux-256color"
image

<!-- gh-comment-id:2481244134 --> @leto-ux commented on GitHub (Nov 17, 2024): same issue as @funkycode set -g default-terminal "xterm-kitty" ![image](https://github.com/user-attachments/assets/06eb54fe-f465-4a70-8aa2-b1e590834385) set -g default-terminal "tmux-256color" ![image](https://github.com/user-attachments/assets/53451103-c8c4-4754-8084-7f59acc9355a)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#218
No description provided.