Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

co-probe-image-size

jasoncodingnow22MIT1.0.2

co version of probe-image-size, fix read large image error problem

co, image, imagesize

readme

co-probe-image-size

Get image size without full download. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, PSD.

Install

npm install co-probe-image-size --save

Oo, I need star: here.

Example

var probe = require('co-probe-image-size');

var dimensions = yield probe.getSize("test-image-name.jpg");
console.log(dimensions);

License

MIT