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

Made by Antonio Ramirez

bare-exif

1.1.0

@GitHub Actions

npmHomeRepoSnykSocket
Downloads:151
$ 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' } })

// Read EXIF data
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)

// Remove a tag
data.removeEntry(exif.constants.tags.ORIENTATION)

// Serialize into raw EXIF
const exifBytes = data.saveData()
// <Uint8Array>

License

Apache-2.0