New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

exif-validation

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exif-validation

```javascript

1.0.8
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source
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.

FAQs

Package last updated on 21 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts