A better image library for Python
Python C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
sanpera
.gitignore
LICENSE
MANIFEST.in
README
README.md
demo-program.py
setup.py

README.md

sanpera

sanpera is an imaging library for Python, designed to expose a lot of power with an unsurprising and consistent API. The goal is to do for image manipulation what requests has done for HTTP.

This is an extreme work in progress, but it does do a few useful things. If it seems useful to you, feel free to give it a spin, and file tickets for whatever's missing or broken!

Documentation

Tech

sanpera is written almost entirely in Cython, because hey, why not.

It's powered by ImageMagick, but it is not a simple wrapper; ImageMagick is merely an implementation detail.

Goals

  • Expose everything ImageMagick can do, smoothing over its idiosyncracies wherever possible.
  • Have simple, obvious behavior.
  • Be reasonably fast and compact.
  • Work with CPython and PyPy.
  • Interop where useful: numpy, Cairo, etc.

Non-goals

  • Behave like ImageMagick.
  • Work with IronPython or Jython.
  • Be as fast or memory-efficient as C.