raw-decoder
v1.0.0
Published
Decodes data from RAW camera files.
Downloads
13
Readme
raw-decoder
Decodes data from RAW camera files.
Usage
yarn add raw-decoder
Node
const fs = require('fs')
const RAWDecoder = require('raw-decoder').Decoder
const myFile = fs.readFileSync('./DSC_0001.nef')
const myFileDecoder = new RAWDecoder(myFile)
const myFileAsJpeg = myFileDecoder.extractJpeg()
const metadata = myFileDecoder.extractMetadata()
fs.writeFileSync('./DSC_0001.jpg', myFileAsJpeg)
console.log(metadata)
// {Make: 'NIKON CORPORATION', Model: 'NIKON D4S', ISO: 160, ...}