Skip to main content

A Module to generate profile pictures

Project description

FFF Profile Picture Lib

What is it?

A library to generate profile pictures

Example

from fff_profile_picture import Generator
from PIL import Image

generator = Generator(Image.open("original.JPG"), Image.open("overlay.png"))
result = generator.process()
result.save("generated.png")

Docs

####class Generator(self, background, overlay, scale=0, size=(640, 640))

background: PIL.Image: An Image object representing the picture on that the overlay will be printed.

overlay: Pil.Image: An Image object representing the picture that will be used as an overlay

scale: Int: How thick the border should be. Defaults to 0

size: Tuple: Defines the size of the result. Background will be scaled to this size.

process():

Creates the Picture

Returns: PIL.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

fff_profile_picture-1.0.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

fff_profile_picture-1.0.2-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