Asynchronous bindings for LibRaw.
Be careful this library is in alpha. The API is susceptible to change at any moment
- Ubuntu Linux 16.04 LTS
- OSX sierra
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);
});
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
OSX: libintl.h not found
Install gettext via brew
brew install gettext
Create a symlink
ln -s /usr/local/Cellar/gettext/[YOUR-VERSION]/lib/libintl.* /usr/local/include/