Simple module for creating placeholder images
install by
$ pip install python-placeholder
Example:
from placeholder import PlaceHolderImage
img = PlaceHolderImage(width = 300, height = 200, path = 'placeholder.png')
img.save_image()
Known bugs:
if you do not provide absolute path to font to PlaceHolderImage the default font used will have very small size.
if you get something like The _imagingft C module is not installed, look here https://stackoverflow.com/questions/4011705/python-the-imagingft-c-module-is-not-installed
Run tests:
You can run the testsuite with the following command:
python -m unittest tests
Or use tox to test against all supported python versions.
Release files for python-placeholder 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-placeholder-0.2.tar.gz | 3.0 kB | Details |
Release files / python-placeholder-0.2.tar.gz
| Download URL | python-placeholder-0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3f4f5866d6177f9554d1e03262c656c383d4df7f28a229c94f0fdbdbb89a448
|
|
BLAKE2b-256 checksum How to use checksums |
b38fb7891f25c8418db6a4453c2be6084fddc07d7ba914d08bc0270dba834577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |