Coder Social home page Coder Social logo

node-libraw's Introduction

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

  • Ubuntu Linux 16.04 LTS
  • OSX sierra

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

Known issues

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/

node-libraw's People

Contributors

m0g avatar

Stargazers

 avatar

Watchers

 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.