Python library for detail-oriented pixel art generation from images
Top 81.6% on sourcepulse
PixelOE is a Python library for generating high-quality pixel art from standard images without AI or neural networks. It targets artists and developers seeking a detail-oriented, contrast-aware approach to pixelization, offering predictable results and preserving fine details through classical image processing techniques.
How It Works
PixelOE employs a two-stage process. First, "Contrast-Aware Outline Expansion" enhances key features by generating a weight map based on local contrast and brightness, then applying selective morphological operations (erosion/dilation) blended according to these weights. This preserves important edges before downscaling. Second, "Contrast-Based Downsampling" processes luminance and color channels separately. It uses a sliding window to select the most representative pixel within each patch based on value distribution, ensuring luminance details are maintained, while color channels are smoothed with a median filter.
Quick Start & Requirements
pip install pixeloe
custom_nodes
directory../client/demo-gr.py
.pixeloe.pixelize
and pixeloe.outline
commands.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The CLI is noted as using a legacy API and will be deprecated. While GPU-free operation is supported, the fastest performance is achieved with PyTorch and a GPU.
1 month ago
1 day