Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libraw

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libraw

Asynchronous bindings for LibRaw

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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/

Keywords

FAQs

Package last updated on 24 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc