Skip to main content

PIL-like interface for system imaging libraries

Project description

This is an experiment in seeing how far you can get using platform-provided packages such as GraphicsMagick, CoreImage, etc. to provide a PIL-like interface but taking advantage of their support for more advanced features such as threading, broader format support (including JPEG-2000), vectorization, etc.

The goal is simple: a user should be able to install NativeImaging and do something like this to a program which is currently using PIL:

from NativeImaging import get_image_class

Image = get_image_class("GraphicsMagick")

Status

Build Status

aware and aware_cext

Very fast JPEG 2000 thumbnail generation compared to GraphicsMagick. Requires the non-OSS AWARE library: http://www.aware.com/imaging/jpeg2000.htm

GraphicsMagick

Currently supports typical web application usage: loading an image, resizing it and saving the result. Testing reveals mixed results, beating PIL when producing thumbnails from large TIFFs and underperforming when thumbnailing equivalent JPEGs, both by about 2:1.

Both CPython and PyPy are supported, with PyPy seeing performance gains using the CFFI backend instead of ctypes. Significant optimization gains are likely possible, particularly where the I/O functions marshall data in and out of the non-filename-based APIs where data is currently being copied.

Jython

Currently supports basic usage: loading an image, resizing it, and saving the result. Performance is generally quite decent as the Java Advanced Imaging API is quite tuned, if somewhat baroque in design.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NativeImaging-0.0.7.tar.gz (15.6 kB view details)

Uploaded Source

File details

Details for the file NativeImaging-0.0.7.tar.gz.

File metadata

File hashes

Hashes for NativeImaging-0.0.7.tar.gz
Algorithm Hash digest
SHA256 edbdc9b18cd4c0a7db64fdc99d1d0b4e44dda36f2c4df64f478b78d44ff7c203
MD5 1f4d566763fabf86535eace49e873ffc
BLAKE2b-256 848ca31fccedd2c300e0c98a342dfca98388f92e955c33e4dd0c723b9e689d07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page