image-meta
[![npm version][npm-v-src]][npm-v-href] [![npm downloads][npm-d-src]][npm-d-href] [![bundle phobia][bundlephobia-src]][bundlephobia-href]
Last updated 3 months ago by pi0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install image-meta 
SYNC missed versions from official npm registry.

image-meta

npm version npm downloads bundle phobia

Using yarn:

yarn add image-meta

Using npm:

npm install image-meta

Usage:

import imageMeta from 'image-meta'
import fetch from 'node-fetch'

const data = await fetch(url).then(res => res.buffer())
const { width, height, mimeType } = await imageMeta(data)

Note: This package only works with Node.js because of Buffer dependency!

License

MIT - Based on image-size

Current Tags

  • 0.0.1                                ...           latest (3 months ago)

2 Versions

  • 0.0.1                                ...           3 months ago
  • 0.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 3
Last Month 7
Dependencies (0)
None
Dev Dependencies (5)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |