Has upgraded to .NET 6.0
Use docker hub:
docker pull chsword/random-avatar:v2.0-alpine
docker run -d -p 80:80 chsword/random-avatar:v2.0-alpine
Docker environments
RANDOM_AVATAR_HOME:Home page is shown,default true ,true|false
RANDOM_AVATAR_SYMMETRY:Whether the generated image is symmetrical,default true, true|false
RANDOM_AVATAR_SIZE:Generated image size,default 100, int
RANDOM_AVATAR_PADDING:Generated image paddings,default 2,int
RANDOM_AVATAR_BLOCK_COUNT:How many rowa and columns the generated image is divided into,default 6,取值 int > = 3
* Note that SZIE-PADDING needs to be divisible by BLOCK_COUNT,Is it possible that there may be inconsistent paddings
* MOD(SZIE-PADDING,BLOCK_COUNT)==0
Dissymmetry example.
![]()
Symmetry example
![]()
If you want to generate a fixed Avatar with a identity/seed:
You can access: http://yourhost/face/seed
eg:
http://yourhost/face/[email protected]
If you want to generate a Random Avatar:
You can access http://yourhost/avatar/seed
Content type
Image
Digest
sha256:d89162f5d…
Size
84.5 MB
Last updated
about 4 years ago
docker pull chsword/random-avatar