s3-image-size
Detect image dimensions of images on Amazon S3. It does so by trying to extract image size via image-size on each chunk received. When the dimensions are present, the request is aborted.
Based on http-image-size.
Usage
var size = ;var AWS = ;var s3 = region: 'some region';
The callback receives three arguments: err
, dimensions
, bytesRead
:
dimensions
is in the form { height: 1063, width: 1600 }
bytesRead
is the number of bytes read from s3
License
Copyright (c) 2015 Charles D. Augello Licensed under the MIT license.