Go terminal image package
- iTerm2 Inline Images Protocol
- Kitty Terminal Graphics Protocol
- PNG
- JPEG
- WEBP
go get github.com/blacktop/go-termimg
ti, err := termimg.Open("path/to/your/image.png")
if err != nil {
log.Fatal(err)
}
defer ti.Close()
ti.Print()
Install
go install github.com/blacktop/go-termimg/cmd/imgcat@latest
Usage
imgcat path/to/your/image.png
MIT Copyright (c) 2024 blacktop