JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 883101
  • Score
    100M100P100Q193437F
  • License MIT

Use for parse .jpg file exif info (including GPS info.).

Package Exports

  • jpeg-exif

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jpeg-exif) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jpeg-exif

Get exif information from jpeg format file.

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 More Than 450 Exif Tags
  • Support GPSInfo Tags
  • Support Sync Method

Installation

$ npm install 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 ],
        //...
    ]
}