Skip to main content

It generates the unique avatar, which save image into PNG, JPG, or Base64 string. you can use this package to give avatar to newly registered users on your application.

Project description

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

import embodier 

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

embodier-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

embodier-1.0.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page