atanunq / viu

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

Display images as grid #85

Closed gkssjovi closed 2 years ago

gkssjovi commented 2 years ago

Hi,

It is possible to display images in a grid table instead of one image per line? For example when I git this command: viu . -w 20

Kind Regard, Ovidiu

atanunq commented 2 years ago

Hey! Unfortunately, it's not possible. The functionality from viuer should be sufficient if one wants to implement it, though :)

Also, looks like a duplicate of https://github.com/atanunq/viu/issues/66

gkssjovi commented 2 years ago

Ok, thank you. I have tried to modify the function print_buffer from viuer. I have changed the writeln! to write! it is displayed on diagonal now ;)