Pixel Artist: Turn images into beautiful pixelated images
Pixel Artist is a command line tool that allows the creation of pixelated images with customizable levels of granularity (size of the visible pixels). Turning images into beautiful works of art that bring back nostalgic feelings from the early days of computer graphics is now easy as calling a single command.
Requirements
Features
- Block granularity
- Color palettes
- Color spaces (RGB and L*a*b)
- Number of colors
Installation
Latest stable version From PyPI
$ pip instal pixel-artist
Latest development version
$ git clone https://github.com/alexpnt/pixel-artist.git
$ pip install -e pixel-artist
Usage
usage: pixel-artist [-h] -f FILENAME [-p {3,8,9,24}] [-n NCOLORS]
[-g GRANULARITY] [-l] [-v] [-s]
Pixel art
optional arguments:
-h, --help show this help message and exit
-f FILENAME, --filename FILENAME
input filename
-p {3,8,9,24}, --nbits {3,8,9,24}
number of bits of the palette, default=24
-n NCOLORS, --ncolors NCOLORS
number of colors to use: 1-256, default=256
-g GRANULARITY, --granularity GRANULARITY
granularity to be used (>0): a bigger value means bigger blocks, default=1
-l, --lab use *lab model, default=rgb
-v, --verbose show progress
-s, --save save the output image
Examples
$ pixel-artist -f img/globe.jpg -g 2 -p 3
Input image dimensions -> width=800, height=600
Block dimensions -> width=2, height=2
Grid dimensions -> width=400, height=300
Fetching 120000 image blocks
Building pixelated image: 100.00 %
Done
$ pixel-artist -f img/tennessee.jpg -g 4 -n 128 -v
Input image dimensions -> width=800, height=600
Block dimensions -> width=5, height=4
Grid dimensions -> width=160, height=150
Fetching 24000 image blocks
Building pixelated image: 100.00 %
Done
$ pixel-artist -f img/lane.jpg -g 4 -n 128 -v
Input image dimensions -> width=800, height=600
Block dimensions -> width=5, height=4
Grid dimensions -> width=160, height=150
Fetching 24000 image blocks
Building pixelated image: 100.00 %
Done
Implementation details
The pixel-artist command line tool works by dividing the image in equal sized blocks and assigning them the average color of the block. Optionally, the size of the blocks can be configured as well the available colors.
Contributing
Github issues are open for feature requests and bug reports. Feel free to submit a pull request with your enhancement proposal.
Metadata
Release files for pixel-artist 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pixel-artist-0.0.6.tar.gz | 14.8 kB | Without provenance | Details for pixel-artist-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixel_artist-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for pixel_artist-0.0.6-py3-none-any.whl |
Total release size: 28.9 kB
Release files / pixel-artist-0.0.6.tar.gz
| Download URL | pixel-artist-0.0.6.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcc0dd5c5ae83cd3b70d64bb6990b36f45c791727d7bb2de5ac4289c0a98bbb7
|
|
BLAKE2b-256 checksum How to use checksums |
5d80efcce6f77e89b21f871c1453740c82b32b831bcf0c9cefe9e22bcb2fd2e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / pixel_artist-0.0.6-py3-none-any.whl
| Download URL | pixel_artist-0.0.6-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2424c26c604593ffdba579c503a2fd4256a0d907e6977e87f2bf261f33ef249c
|
|
BLAKE2b-256 checksum How to use checksums |
5a852df0c1a6c6198e7cf77bcbac0f8886ebb7c2095fba53d6d77b7d124614d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for pixel-artist 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.