mediafile-metadata
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

mediafile-metadata

Efficiently (only required bits) reads photo/video metadata. Understands tiff/exif (jpeg, nef, cr2, etc), isobmff (mov, mp4, heic, etc) formats.

Installation

npm i mediafile-metadata

Example

const mediafileMetadata = require("mediafile-metadata");
const essentials = await mediafileMetadata.getEssentials("/path/to/mediafile"); // path to photo or video file
console.log(essentials);
// {
//   creationDate: new Date("2022-05-10T15:48:20.000Z"),
//   camera: "Apple iPhone XS",
// }

License

MIT

Package Sidebar

Install

npm i mediafile-metadata

Weekly Downloads

23

Version

1.3.0

License

MIT

Unpacked Size

82 kB

Total Files

26

Last publish

Collaborators

  • titarenko