Overview
Pixora is a lightweight Python library and command-line tool for converting ordinary images into retro-style pixel art. Built on top of Pillow, it provides a simple API for pixelizing images with customizable pixel sizes while supporting both file paths and in-memory objects. Whether you are creating game assets, generating pixelated avatars, or adding a nostalgic visual effect to your images, Pixora offers a fast, and easy-to-use solution for both scripts and terminal workflows.
| PyPI Counter | |
| Github Stars |
| Branch | main | dev |
| CI |
| Code Quality |
Installation
Source Code
- Download Version 0.6 or Latest Source
pip install .
PyPI
- Check Python Packaging User Guide
pip install pixora==0.6
Usage
Library
from pixora import NearestNeighbor, Lanczos
from pixora import pixelize
pixelize("input.png", output="output.png", algorithm=NearestNeighbor(pixel_size=12))
image1 = pixelize("input.png", algorithm=Lanczos(pixel_size=12), grayscale=True)
image1.show()
image2 = pixelize("input.png", algorithm=RandomBlock(pixel_size=8, seed=42))
image2.show()
CLI
pixora input.png output.png
pixora input.png output.png --pixel-size=12
pixora input.png output.png --algorithm="bilinear"
pixora input.png output.png --grayscale
pixora input.png output.png --algorithm="random-block" --pixel-size=8 --seed=42
Available Algorithms
The following examples use the same input image with pixel_size=8.
| Algorithm | Description | Example |
|---|---|---|
NearestNeighbor |
Pixelate using nearest-neighbor resampling | |
Bilinear |
Pixelate using bilinear resampling | |
Bicubic |
Pixelate using bicubic resampling | |
Lanczos |
Pixelate using Lanczos resampling | |
Box |
Pixelate using box resampling | |
MeanBlock |
Pixelate by calculating the mean RGB color of each block | |
ModeBlock |
Pixelate by replacing each block with its most frequent color | |
MedianBlock |
Pixelate by replacing each block with its median RGB color | |
MaxBlock |
Pixelate by replacing each block with its brightest RGB color | |
MinBlock |
Pixelate by replacing each block with its darkest RGB color | |
RandomBlock |
Pixelate by filling each block with the color of a randomly selected pixel |
Issues & Bug Reports
Just fill an issue and describe it. We'll check it ASAP!
- Please complete the issue template
Show Your Support
Star This Repo
Give a ⭐️ if this project helped you!
Donate to Our Project
Bitcoin
1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCyEthereum
0xcD4Db18B6664A9662123D4307B074aE968535388Litecoin
Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZDoge
DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDhTron
TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7Ripple
rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qqBinance Coin
bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qefTether
0xcD4Db18B6664A9662123D4307B074aE968535388Dash
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3sStellar
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNLZilliqa
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5Coffeete
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
0.6 - 2026-11-06
Added
BoxalgorithmRandomBlockalgorithm--seedCLI argument
Changed
- Test system modified
README.mdupdated
0.5 - 2026-10-26
Added
MaxBlockalgorithmMinBlockalgorithm
Changed
Python 3.15added totest.yml- Build system modified
- Test system modified
README.mdupdated
0.4 - 2026-10-02
Added
MeanBlockalgorithmModeBlockalgorithmMedianBlockalgorithm
Changed
- Test system modified
README.mdupdated
0.3 - 2026-08-23
Added
grayscaleparameter--grayscaleCLI argument
Changed
- Opened image bug fixed
--infoCLI argument bug fixed--algorithmCLI argument bug fixedsavemethod modified- Pixel size validation bug fixed
- CLI structure modified
- Test system modified
README.mdupdated
0.2 - 2026-07-27
Added
LanczosalgorithmBilinearalgorithmBicubicalgorithm- Logo
Changed
- Test system modified
README.mdupdated
0.1 - 2026-07-14
Added
NearestNeighboralgorithmpixelizefunctionConverterclassPixoraErrorclassPixoraImageErrorclassPixoraValidationErrorclass
Metadata
Release files for pixora 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 |
|---|---|---|---|---|
| pixora-0.6.tar.gz | 19.2 kB | Without provenance | Details for pixora-0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixora-0.6-py3-none-any.whl | Python 3 | none | any | Details for pixora-0.6-py3-none-any.whl |
Total release size: 40.3 kB
Release files / pixora-0.6.tar.gz
| Download URL | pixora-0.6.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e65d131be0165dd5489d96b7f6d9334d0f23a5993721240ae369718d091c214a
|
|
BLAKE2b-256 checksum How to use checksums |
a5e4901c314ddac05a19c71b7aab7ad32a7e9d066df0c2eb1f1c045763fae571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / pixora-0.6-py3-none-any.whl
| Download URL | pixora-0.6-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8e4e0bd61278eb33b4d804555434e548187a2f638fc91d8e82cdc48df051c0a
|
|
BLAKE2b-256 checksum How to use checksums |
f9e336e72daadd1be6d81abe03418a00ec5b8fda4ae49f95c35d421684a55568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for pixora 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.