https://iterm2.com/documentation-images.html
That's iterm's own implementation. There's also sixel, as pointed out by another comment.