1.0.8 • Published 2 years ago

exif-validation v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago
example of exif data from exifr module
const exifData = {"ImageWidth":2592,"ImageHeight":1944,"Make":"Google","Model":"Pixel 3","Orientation":"Rotate 90 CW","ModifyDate":"2022-03-06T16:47:30.000Z","ExposureTime":0.025011305,"FNumber":1.8,"ISO":284,"OffsetTime":"+07:00","ShutterSpeedValue":-5.32,"ApertureValue":1.69,"SubjectDistance":0.137,"Flash":"Flash did not fire","FocalLength":4.44,"SubSecTime":"592","ExifImageWidth":2592,"ExifImageHeight":1944,"SubjectDistanceRange":"Macro","GPSLatitudeRef":"N","GPSLatitude":[1,18,55.37],"GPSLongitudeRef":"E","GPSLongitude":[103,51,15.8],"GPSAltitudeRef":{"0":0},"GPSAltitude":65,"GPSTimeStamp":"16:47:2","GPSDateStamp":"2022:03:06","latitude":1.3153805555555556,"longitude":103.85438888888888}

And then call this module

const exifValidation = require("exif-validation")

pass the data from exif

const validate = exifValidation(exifData)

console.log(validate) // true or false
	

if value return from function is false then is not good exif, we should reject them

We expect true return from the module, and then allowing user to precess the image.

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago