timg now supports iTerm2 image protocol

217 views
Skip to first unread message

Henner Zeller

unread,
Mar 14, 2021, 11:44:11 PM3/14/21
to iterm2-...@googlegroups.com
Hi,
I recently heard about iTerm2 and its image protocol. Previously my terminal image and video viewer http://timg.sh/ just used either just regular Unicode block characters or the Kitty image protocol on a kitty terminal.

Well, and now it supports the iTerm2 image protocol as well :)

The timg viewer is a tool for inspecting images on the shell, e.g. showing them in a grid layout to quickly browse through a bunch of images (in particular useful when logged in remotely). Multi-threaded loading and scaling, exif rotation, transparency handling, video playing etc. make it a useful little tool.
And with the iTerm2 image protocol now also in hi-resolution :)

I don't have access to a Mac, so I don't actually know if it works on an iTerm2 - but I tested it with the wezterm (that also implements the iTerm2 image protocol) with which I can view images and play animations and videos smoothly. Timg should auto-detect if it runs in an iTerm2, so if you run it in the terminal with images it should show them in high-resolution. Would be good to hear from iTerm2 users if it actually works.


Cheers,
  Henner.

George Nachman

unread,
Mar 24, 2021, 1:51:14 AM3/24/21
to iterm2-...@googlegroups.com
It works! It’s really cool to see a video playing. Great work :)

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/CAEQqtJwZ%3DWV3LFBB8nkLSpxTPCviDvRMwR4jzW9WOr_mQKQatQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages