Skip to main content

madeitpx

madeitpx

Python binding for madeitpx. Converts RGBA8 pixel buffers to an output grid with a limited color palette.

madeitpx conversion examples

python -m pip install madeitpx

The release wheel includes native libraries for Windows, Linux (glibc), and macOS on x64 and ARM64. The matching library is loaded automatically.

from madeitpx import ConversionOptions, convert_rgba8

pixels = bytes((
    255, 0, 0, 255,
    0, 255, 0, 255,
    0, 0, 255, 255,
    255, 255, 255, 255,
))
result = convert_rgba8(
    pixels,
    input_width=2,
    input_height=2,
    target_width=1,
    target_height=1,
    options=ConversionOptions(palette_colors=4),
)

Inputs may be bytes, bytearray, or memoryview. Set input_stride for padded source rows. Conversion options include preset, palette_colors, background_rgb, sampling, and cluster_cleanup. Use Preset.PIXELART for outline-preserving conversion and structure cleanup. It uses 16 palette colors by default and ignores the sampling option. See the pixelart preset documentation for details.

Python 3.9 or newer is required. Linux native libraries target glibc; musl Linux is not currently supported. For local builds, set MADEITPX_LIBRARY_PATH or pass library_path to convert_rgba8.

The release workflow publishes to PyPI using GitHub's trusted publishing. Publishing requires a PyPI trusted publisher configured for this repository, the release.yml workflow, and the pypi environment.

Pixelart preset

Preset.PIXELART uses version 2 of the pixel-art pipeline. Settings you leave as None keep the library default; pixelart_defaults() returns all of them.

from madeitpx import ConversionOptions, PixelArtMode, PixelArtSettings, Preset, convert_rgba8

options = ConversionOptions(
    preset=Preset.PIXELART,
    pixelart=PixelArtSettings(mode=PixelArtMode.ILLUSTRATION, palette_max=32),
)

PixelArtSettings(version=1) runs the original pipeline. With keep_transparency (default) cells that were transparent in the source are returned with alpha 0. See the pixelart documentation.

Metadata

Release files for madeitpx 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for madeitpx 0.2.1
File Size Uploaded Provenance Actions
madeitpx-0.2.1.tar.gz 1.1 MB With provenance Details for madeitpx-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for madeitpx 0.2.1
File Interpreter ABI Platform Actions
madeitpx-0.2.1-py3-none-any.whl Python 3 none any Details for madeitpx-0.2.1-py3-none-any.whl

Total release size: 2.3 MB

Release files / madeitpx-0.2.1.tar.gz

Download URL madeitpx-0.2.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
e1525ca23972de862b0042cb5a04c385ca4823627518fd8d8d3b64d17df39311
BLAKE2b-256 checksum
How to use checksums
e939a432b1bf25dbddfef72a3635d88b6fc11405a8147b06686dde5e4bf040bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / madeitpx-0.2.1-py3-none-any.whl

Download URL madeitpx-0.2.1-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f72245d05c03cc7f0c72f197cf128d056b6b3f02f488c0eef834e4ff198b95e3
BLAKE2b-256 checksum
How to use checksums
f2729393098ca7dcd7d9ccf0b8dc8736f97d8ac21bc92d5e744158db72a5d3d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for madeitpx 0.2.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for madeitpx-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page