Skip to main content

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

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.

Release files for NativeImaging 0.0.10

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

Source distribution (sdist)

Source distribution for NativeImaging 0.0.10
File Size Uploaded
NativeImaging-0.0.10.tar.gz 30.6 MB Details

Release files / NativeImaging-0.0.10.tar.gz

Download URL NativeImaging-0.0.10.tar.gz
Size 30.6 MB
Tags Source
SHA-256 checksum
How to use checksums
85a5450672534b1378621bc61ec4fd2ba81c5fc659dbf6431f736dd197d85b19
BLAKE2b-256 checksum
How to use checksums
b82a9197173b1d4fa9d74d1e491a0c78e7f68ee3701db93205b56977f0de4b43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.10 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.2

1 release file

0.0.1

1 release file

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