Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

exifr

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exifr

📷 The fastest and most versatile JavaScript EXIF reading library.

  • 7.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
284K
increased by1.97%
Maintainers
1
Weekly downloads
 
Created

What is exifr?

The exifr npm package is a powerful tool for extracting EXIF (Exchangeable Image File Format) data from images. It supports a wide range of image formats and can extract various types of metadata, including GPS information, camera settings, and more.

What are exifr's main functionalities?

Extract Basic EXIF Data

This feature allows you to extract basic EXIF data from an image. The code sample demonstrates how to use the `exifr.parse` method to read EXIF data from a specified image file.

const exifr = require('exifr');

async function getBasicExifData(imagePath) {
  const exifData = await exifr.parse(imagePath);
  console.log(exifData);
}

getBasicExifData('path/to/image.jpg');

Extract GPS Data

This feature allows you to extract GPS data from an image. The code sample demonstrates how to use the `exifr.gps` method to read GPS metadata from a specified image file.

const exifr = require('exifr');

async function getGpsData(imagePath) {
  const gpsData = await exifr.gps(imagePath);
  console.log(gpsData);
}

getGpsData('path/to/image.jpg');

Extract Thumbnail

This feature allows you to extract the thumbnail image embedded in the EXIF data. The code sample demonstrates how to use the `exifr.thumbnail` method to read the thumbnail from a specified image file.

const exifr = require('exifr');

async function getThumbnail(imagePath) {
  const thumbnail = await exifr.thumbnail(imagePath);
  console.log(thumbnail);
}

getThumbnail('path/to/image.jpg');

Other packages similar to exifr

Keywords

FAQs

Package last updated on 05 Aug 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc