exif
Parses and writes EXIF data from JPEG and NEF files.
Usage
yarn add @eris/exif
Node
const fs = require('fs')
const parse = require('@eris/exif')
const metadata = parse(fs.readFileSync('./myfile.jpg'))
console.log(metadata)
Converting RAW Formats
const fs = require('fs')
const RAWDecoder = require('@eris/exif').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)
Documention and Resources for Various Formats