Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

image-dimensions

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-dimensions

Get the dimensions of a file input

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
115K
-19.31%
Maintainers
1
Weekly downloads
 
Created
Source

image-dimensions

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Get the dimensions of an image blob.

import getDimensions from 'image-dimensions'

const file = document.query('input[type="file"]')

getDimensions(file).then(function (size) {
  console.log(size.width)
  console.log(size.height)
})

Keywords

image

FAQs

Package last updated on 14 Apr 2015

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