npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

bare-exif

1.0.1

@kasperisager

npmHomeRepoSnykSocket
Downloads:929
$ npm install bare-exif
DailyWeeklyMonthlyYearly

bare-exif

EXIF support for Bare.

npm i bare-exif

Usage

const exif = require('bare-exif')

const image = require('./my-image.jpg', { with: { type: 'binary' } })

const data = new exif.Data(image)

const orientation = data.entry(exif.constants.tags.ORIENTATION)

orientation.read() // 1 (raw value)
orientation.value() // Top-left (human readable string)

License

Apache-2.0