Skip to content

roygdavis/SamExif

Repository files navigation

jpeg-exif

Get exif information from jpeg format file. Works with TIFF too!

npm Inline docs Build Status Coverage Status

Async

import exif from "jpeg-exif";

const filePath = "~/Photo/IMG_0001.JPG";

exif.parse(filePath, (err, data) => {
    if (err) {
        console.log(err);
    } else {
        console.log(data);
    }
});

Sync

import exif from "jpeg-exif";

const filePath = "~/Photo/IMG_0001.JPG";
const data = exif.parseSync(filePath);

console.log(data);

From Buffer

import fs from "fs";
import exif from "jpeg-exif";

const filePath = "~/Documents/DOC_0001.TIFF";
const buffer = fs.readFileSync(filePath);
const data = exif.fromBuffer(buffer);

console.log(data);

Features

  • Support All CP3451 Standard Tags (Include GPS & SubExif Tags)
  • Support Sync, Async
  • Support pass Buffer Type

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy