node-s3-uploader
================

Resize, rename, and upload images to AWS S3

## Usage

```javascript
var Upload = require('s3-uploader');
var client = new Upload('my_s3_bucket', {
  awsBucketPath: '/images',
  awsBucketUrl: 'https://some.domain.com/images', 
  version: [{
    maxHeight: 780,
    maxWidth: 780
  },{
    maxHeight: 320,
    maxWidth: 320
  }],
  keepOriginal: true
});
```

### Upload

```javascript
client.upload('/tmp/some/file', function(err, images) {
  if (err) {
    console.error(err);
  } else {
    for (var i = 0; i < images.length; i++) {
      console.log('Thumbnail with width %i, height %i, at %s', images[i].width, images[i].height, images[i].url);
    }
  }
});
```

node-s3-uploader
================

Resize, rename, and upload images to AWS S3

## Usage

```javascript
var Upload = require('s3-uploader');
var client = new Upload('my_s3_bucket', {
  awsBucketPath: '/images',
  awsBucketUrl: 'https://some.domain.com/images',
  versions: [{
    maxHeight: 1040,
    maxWidth: 1040
  },{
    maxHeight: 780,
    maxWidth: 780
  },{
    maxHeight: 320,
    maxWidth: 320
  }],
  keepOriginal: true
});
```

### Upload

```javascript
client.upload('/tmp/some/file', function(err, images) {
  if (err) {
    console.error(err);
  } else {
    for (var i = 0; i < images.length; i++) {
      console.log('Thumbnail with width %i, height %i, at %s', images[i].width, images[i].height, images[i].url);
    }
  }
});
```

Add large thumnail to versions config
Add large thumnail to versions config
