Placeholder is a simple little python module that creates (drumroll..) placeholder images, based on work of Martin Marcher
Project description
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.
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
File details
Details for the file python-placeholder-0.2.tar.gz
.
File metadata
- Download URL: python-placeholder-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f4f5866d6177f9554d1e03262c656c383d4df7f28a229c94f0fdbdbb89a448 |
|
MD5 | 3ea1ef3dc4342ded8e2531aac8bae932 |
|
BLAKE2b-256 | b38fb7891f25c8418db6a4453c2be6084fddc07d7ba914d08bc0270dba834577 |