1.1.4 • Published 5 years ago
jpeg-exif v1.1.4
jpeg-exif
Get exif information from jpeg format file. Works with TIFF too!
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 ],
//...
]
}
1.1.4
5 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.0.9
8 years ago
0.0.8
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago