Skip to content

This library will help you to generate GitHub create dynamic profile image for new users

Notifications You must be signed in to change notification settings

2000prath/Dynamic-Avatar-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Avatar Generator

This library will help you to generate profile image for newly registered user on your application, like GitHub create profile picture for new users E.g.

75605781 (2)

Generated images

generatedimg New Project (3)

Usage

from avatar import AvatarGenerator

#initialize image generator
obj = AvatarGenerator()
img = obj.CreateAvatar() 

Advance parameters obj.CreateAvatar(row_columns,pixel_size,background_color)

@row_columns Integer, block size of row and columns, default 5
@pixel_size Integer, pixel size, default 300
@background_color String, background color of blocks in image, default lightgrey
@border Boolean, True to add border to image, False to without border image, default True

img.show() to open generated image
img.save('image.png') to save image with image name
obj.toBase64(img) to get Base64 value of generated image

About

This library will help you to generate GitHub create dynamic profile image for new users

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages