Socket
Book a DemoInstallSign in
Socket

datauri-dimensions

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datauri-dimensions

Parse the dimensions of a data URI png / jpeg

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

datauri-dimensions

Parse the dimensions of a data URI png / jpeg

Installation

$ component install component/datauri-dimensions

Example

var size = require('datauri-dimensions');

var canvas = document.createElement('canvas');
canvas.width = 100;
canvas.height = 150;

var uri = canvas.toDataURL('image/jpeg');
console.log(size(uri));

var uri = canvas.toDataURL('image/png');
console.log(size(uri));

License

MIT

Keywords

png

FAQs

Package last updated on 06 May 2013

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