GithubHelp home page GithubHelp logo

imclab / nativeimaging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acdha/nativeimaging

0.0 2.0 0.0 60.47 MB

PIL-compatible interface for platform libraries such as GraphicsMagick, Aware or JAI.

Home Page: http://acdha.github.com/NativeImaging/

nativeimaging's Introduction

Native Imaging

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.

nativeimaging's People

Contributors

acdha avatar eikeon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.