Categorygithub.com/mattn/go-sixel
modulepackage
0.0.5
Repository: https://github.com/mattn/go-sixel.git
Documentation: pkg.go.dev

# README

go-sixel

DRCS Sixel Encoder/Decoder

Installation

$ go get github.com/mattn/go-sixel

You can install gosr (go sixel renderer), gosd (go sixel decoder) with following installation instruction.

$ go get github.com/mattn/go-sixel/cmd/gosr
$ go get github.com/mattn/go-sixel/cmd/gosd
CommandDescription
gosrImage renderer
gosdDecoder to png
goscatRender cats
gosgifRender animation GIF
goslRun SL

Usage

Encode

$ cat foo.png | gosr -

Decode

$ cat foo.drcs | gosd > foo.png

Use as library

img, _, _ := image.Decode(filename)
sixel.NewEncoder(os.Stdout).Encode(img)

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

# Packages

No description provided by the author

# Functions

NewDecoder return new instance of Decoder.
NewEncoder return new instance of Encoder.

# Structs

Decoder decode sixel format into image.
Encoder encode image to sixel format.