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
Built Distribution
Close
Hashes for fff_profile_picture-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0929a81c94b3ab608aaaf1749327f1b79bad9a4ac2400b5fe81c24ed5bf18179 |
|
MD5 | 80491a3e385f0f2b3c605eb2dfdf34f2 |
|
BLAKE2b-256 | 4ec62115b3156da205611e280bc0a1314302342d9a5baf57b3baaf68eb67fa79 |
Close
Hashes for fff_profile_picture-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f562acea81b66ffbcbabb773b5f6118d76d70d674a2b79b4e28e9567730040 |
|
MD5 | beebb9d6bde0123bdcb0c189ece1e95c |
|
BLAKE2b-256 | 8fc5f31806731ff92169b998bde7703a815fc72909952c50f59217b22ade07d7 |