git clone git@github.com:ferdiunal/ui-avatar.git uiAvatar
cd uiAvatar
go get -u .
go run main.go
Generate avatar with name params
https://....com/?name=John Doe
Set background color
https://....com/?name=John Doe&background=F80000&color=fff
Set font color
https://....com/?name=John Doe&background=fff&color=F80000
You can set the format of the avatar to be created as svg or png. Default: png
https://....com/?name=John Doe&background=fff&color=F80000&format=svg
Determines whether to use bold font. Currently it only works in svg. Default false
https://....com/?name=John Doe&background=fff&color=F80000&format=svg&bold=true
It is determined whether the avatar to be created will be a circle or not. Default false
https://....com/?name=John Doe&background=fff&color=F80000&format=svg&bold=true
Sets the font size between 0.1 and 1. Default: 0.5
https://....com/?name=John Doe&background=fff&color=F80000&format=svg&bold=true&font-size=0.7
Sets the image size between 25x25 and 1024x1024 Default: 512
https://....com/?name=John Doe&background=fff&color=F80000&format=svg&bold=true&font-size=0.7&size=125
Length of the generated initials. Default: 2
https://....com/?name=John Doe&background=fff&color=F80000&format=svg&bold=true&font-size=0.7&size=125&length=1
The MIT License (MIT). Please see License File for more information.