Naming Prosecution Mitigator
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

aj-jpeg-exif

1.0.7 • Public • Published

jpeg-exif

Get exif information from jpeg format file.

NPMNPM

npm npm npm npm

bitHound Overall Score Inline docs Build Status Coverage Status

GitHub stars GitHub watchers

Join the chat at https://gitter.im/jpeg-exif/Lobby

Async

const exif = require("jpeg-exif");
let file = "~/Photo/IMG_0001.JPG";
exif.parse(file, (err, data) => {
    if (err) {
        console.log(err);
    } else {
        console.log(data);
    }
});

Sync

const exif = require("jpeg-exif");
let file = "~/Photo/IMG_0001.JPG";
let data=exif.parseSync(file);
console.log(data);

Features

  • Support All CP3451 Standard Tags (Include GPS & SubExif Tags)
  • Support Both Sync & Async Method

Installation

$ npm i jpeg-exif

Callback Data Format

{
    "Make": "Apple",
    "Model": "Apple",
    //...
    "SubExif": [
        "DateTimeOriginal": "2015:10:06 17:19:36",
        "CreateDate": "2015:10:06 17:19:36",
        //...
    ],
    "GPSInfo":[
        "GPSLatitudeRef": "N",
        "GPSLatitude": [ 35, 39, 40.08 ],
        //...
    ]
}

Install

npm i aj-jpeg-exif

DownloadsWeekly Downloads

0

Version

1.0.7

License

MIT

Last publish

Collaborators

  • avatar