Socket
Book a DemoInstallSign in
Socket

image-file

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-file

A image metadata parser that can be run on both Node.js and browsers

1.1.1
latest
npmnpm
Version published
Weekly downloads
310
-12.18%
Maintainers
1
Weekly downloads
 
Created
Source

image-file

image-file is an image metadata parser that can be run on both Node.js and browsers.

Currently the following image types are supported:

  • PNG
  • JPEG (JFIF/Exif)

Usage

var ImageFile = require('image-file')
var arrayBuffer = getArrayBufferFromFileReaderOrAnything()
var image = new ImageFile(arrayBuffer)
console.log(image)
// {
//   data: { dataView: {}, buffer: {}, position: 0 },
//   width: 240,
//   height: 88,
//   ppi: 144
// }

If you use image-file in browser environment with Browserify or something, you need to add babel to your application dependencies and require('babel/polyfill') before requireing image-file.

Development

Run npm run for the available development tasks.

FAQs

Package last updated on 28 Jun 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.