ihabunek / toot

toot - Mastodon CLI & TUI
GNU General Public License v3.0
1.13k stars 107 forks source link

Sixels or Unicode image previews #324

Open osresearch opened 1 year ago

osresearch commented 1 year ago

timg

For toots with media attachments, it might be interesting to use sixels or timg to render them in the reader pane with unicode blocks.

osresearch commented 1 year ago

image

urwid is eating the foreground/background attributes, but the timg based decoder is almost working

osresearch commented 1 year ago

image

Oops, it was a problem with the distro's ancient version of urwid. Installing via pip and now it "works".

ihabunek commented 1 year ago

There is ongoing work to implement this, see: https://github.com/ihabunek/toot/issues/243 https://github.com/ihabunek/toot/pull/319 https://github.com/danschwarz/toot/discussions/2

danschwarz commented 6 months ago

The images branch is now working quite well IMHO and cleanly separates the image related code into a single file; you can choose to install toot with or without image support (image support requires the term-image and pillow libraries),