DRCS Sixel Encoder/Decoder for Go

ffmpeg and ffprobe (only for gosvideo)Sixel is a bitmap graphics protocol. The following terminals are known to support sixel output:
--enable-sixel-graphics)go get github.com/mattn/go-sixel
go install github.com/mattn/go-sixel/cmd/gosr@latest
go install github.com/mattn/go-sixel/cmd/gosd@latest
go install github.com/mattn/go-sixel/cmd/gosgif@latest
go install github.com/mattn/go-sixel/cmd/gosvideo@latest
| Command | Description |
|---|---|
| gosr | Image renderer |
| gosd | Decoder to PNG |
| goscat | Render cats |
| gosgif | Render animation GIF |
| gosvideo | Render video via ffmpeg |
| gosl | Run SL |
$ gosr foo.png
Or from stdin:
$ cat foo.png | gosr -
$ cat foo.drcs | gosd > foo.png
$ gosgif nyacat.gif
$ gosvideo movie.mp4
$ gosvideo -width 320 -fps 15 -loop clip.mp4
$ gosvideo -colors 255 -dither movie.mp4
gosvideo requires ffmpeg and ffprobe in your PATH.
Default playback is tuned for speed with -colors 64 and dithering disabled.
img, _, _ := image.Decode(filename)
sixel.NewEncoder(os.Stdout).Encode(img)
MIT
Yasuhiro Matsumoto (a.k.a mattn)
Overall
Maintained
Code review
Go module
Latest release
Releases this year
3,417 followers · starred Feb 2022
193 followers · starred Apr 2024
6 followers · starred Jul 2024
DRCS Sixel Encoder/Decoder for Go

ffmpeg and ffprobe (only for gosvideo)Sixel is a bitmap graphics protocol. The following terminals are known to support sixel output:
--enable-sixel-graphics)go get github.com/mattn/go-sixel
go install github.com/mattn/go-sixel/cmd/gosr@latest
go install github.com/mattn/go-sixel/cmd/gosd@latest
go install github.com/mattn/go-sixel/cmd/gosgif@latest
go install github.com/mattn/go-sixel/cmd/gosvideo@latest
| Command | Description |
|---|---|
| gosr | Image renderer |
| gosd | Decoder to PNG |
| goscat | Render cats |
| gosgif | Render animation GIF |
| gosvideo | Render video via ffmpeg |
| gosl | Run SL |
$ gosr foo.png
Or from stdin:
$ cat foo.png | gosr -
$ cat foo.drcs | gosd > foo.png
$ gosgif nyacat.gif
$ gosvideo movie.mp4
$ gosvideo -width 320 -fps 15 -loop clip.mp4
$ gosvideo -colors 255 -dither movie.mp4
gosvideo requires ffmpeg and ffprobe in your PATH.
Default playback is tuned for speed with -colors 64 and dithering disabled.
img, _, _ := image.Decode(filename)
sixel.NewEncoder(os.Stdout).Encode(img)
MIT
Yasuhiro Matsumoto (a.k.a mattn)
Overall
Maintained
Code review
Go module
Latest release
Releases this year
3,417 followers · starred Feb 2022
193 followers · starred Apr 2024
6 followers · starred Jul 2024