Asynchronous bindings for LibRaw
JavaScript Other
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 4 commits ahead, 4 commits behind m0g:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
vendor
.gitignore
.gitmodules
LICENSE
README.md
binding.gyp
dcraw_bundle.js
libraw.js
node_libraw.cc
package.json
tests.js

README.md

Node-libRAW

Asynchronous bindings for LibRaw.

NPM

Be careful this library is in alpha. The API is susceptible to change at any moment

Supported platforms

So far that library only supports Linux (tested on ubuntu 14.04 LTS) with node > 4.0

Usage

import libraw from 'libraw';

// For extracting the RAW tiff
libraw.extract('./test.raf', './output')
  .then((output) => {
    console.log(output);
  });

// For extracting the embedded jpg thumbnail
libraw.extractThumb('./test.raf', './output')
  .then((output) => {
    console.log(output);
  });

Note on LibRaw

This library doesn't come with LibRaw included, you will have to install it by yourself.

Depending on which distribution you are using, it might not be possible to decode RAW on modern camera (for instance Fuji X100T).

I'm planning on shipping node-libraw with the latest version of libraw, but due to my meager knowledge of C++ it's going to take some time.

Any contributions are, of course, welcome.

On linux: sudo apt-get install libraw-dev