atanunq / viu

Terminal image viewer with native support for iTerm and Kitty
MIT License
2.53k stars 56 forks source link

Multiple images in a single line #66

Open ouuan opened 3 years ago

ouuan commented 3 years ago

If I want to have a brief look at all the images in the current directory, I may want to list them in a small size with multiple images in a single line. So I think it's good to have an option for this.

kidonng commented 3 years ago

https://github.com/hackerb9/lsix

ouuan commented 3 years ago

hackerb9/lsix

lsix requires sixel.

kidonng commented 3 years ago

If your terminal doesn't support images nor sixel, then multiple images in a single line would look awful because of the pixelation needed.

P.S. While not widely supported, sixel is the de facto standard for displaying images in Terminal. I don't know if Kitty or iTerm is capable of displaying multiple images in one line, but sixel is. viuer, the library behind viu, has added support for sixel recently, so this feature should not be hard to implement. However, you may have to use a sixel-supported terminal in order to use it.