Make your photos even worse. But it’s like pixel art.
Works with Python ≥ 3.2. Use version 0.4 for Python 2.* projects.
Installation
pip install pixelate
Usage
From CLI:
pixelate --input=img/bps.jpg --output=img/bps.png --pixel-size=10
pixelate arguments:
–input – string – path to input image.
–output – string – path to output image.
–pixel-size – integer – pixel size.
From Python code:
from pixelate import pixelate
pixelate('img/bps.jpg', 'img/bps.png', 10)
Args:
input_file_path: the path to the source image file to be processed.
output_file_path: the path to the result file.
pixel_size: pixel size.
From this:
To this:
Release files for pixelate 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pixelate-1.0.0.tar.gz | 2.9 kB | Details |
Release files / pixelate-1.0.0.tar.gz
| Download URL | pixelate-1.0.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afa10104c3203769e3e07948477856f14764ded34a243963e37cba962c79b1ef
|
|
BLAKE2b-256 checksum How to use checksums |
d69f8e43d4f878463d3a68e30656919b4798d2c30bf173311fe5c385c11f9a24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
|