Python libspng API

Python bindings for the libspng library.

load(data[, format])

Load a PNG from a bytes object and return the image data as a np.ndarray.

Low-level C bindings

spng_format

Members:

spng_decode_image_bytes(data, fmt)

Decode PNG bytes into a numpy array.