Skip to content

[request] Add support for displaying images #169

@rajayonin

Description

@rajayonin

It would be very cool to be able to view an article's images in the reader, as some terminal emulators (Kitty, Ghostty, Konsole, and WezTerm) now support Kitty's Terminal graphics protocol.

I've done some digging and here's what I've found...

There is no plan for adding image support to bubbletea1, but at least there's the concept of a plan of adding it to lipgloss2.

You can also just print the image manually following the protocol, and there's a library written in Go, rasterm, to do exactly that. But I'm guessing that won't play nicely with the reader, so as an alternative you can manually draw the pixels in the terminal with the good ol' U+2584 character method, which is exactly what imgcat (written in Go and using bubbletea) does. This would have the added benefit of working in any terminal emulator, with the drawback of producing very low-res images.

Footnotes

  1. https://github.com/charmbracelet/bubbletea/issues/163

  2. https://github.com/charmbracelet/lipgloss/issues/24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions