Nefariously Pushing Master

    browser-image-size

    1.1.0 • Public • Published

    Browser image size

    NPM version build status

    Sauce Test Status

    Installation

    $ npm install browser-image-size

    To use browser-image-size you must polyfill Promise.

    Usage

    var browserImageSize = require('browser-image-size')
     
    browserImageSize('128.png')
    .then(function (size) {
      console.log(size)
      // => {height: 128, width: 128}
    })

    API

    browserImageSize(image)

    Parameters:

    • image : {(File|blob|string)} File, blob, or URL string

    Returns:

    • BrowserImageSizePromise : {Promise} resolved with object containing image width and height

    Tests

    $ npm test -- --local

    License

    MIT

    Install

    npm i browser-image-size

    DownloadsWeekly Downloads

    2,564

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • cesarandreu