emojigen
command can generate emoji image for Custom Emoji in Chat Application such as Slack, Mattermost etc.
- Get Libraries to build
go get github.com/nfnt/resize
go get github.com/golang/freetype
go get github.com/soniakeys/quant/median
go get github.com/BurntSushi/graphics-go/graphics
- Build Command
go build -o emojigen main.go
$ ./emojigen -type resize -image sample.png
$ ./emojigen -type resize -image sample.png -out ./path/to/output.png
$ ./emojigen -type text -string "なるほど" -font sample.ttf
$ ./emojigen -type text -string "忖 度" -font sample.ttf -out ./path/to/output.png
$ ./emojigen -type animation -image sample.png -out sample.gif
- emojine support only "png" file.
- Resize operation supports only square image. Rectangle dose not work properly.
- Generate Text operation does not fit size according to string length and font size.
- Animation operation support only rotation.
- Animation operation does not support transparent background.