blitline-s3
Post Blitline jobs that uploads to s3 and do polling for the jobs.
Install
npm install --save blitline-s3
Usage
var blitline = require('blitline-s3')({
APPLICATION_ID: 'APP_ID',
BUCKET: 'YourS3Bucket',
NAME_PREFIX: 'uploads/'
});
blitline('http://www.source.to/your-image.jpg', {
resize10: {
name: 'resize',
params: {
width: 10,
height: 10
},
save: 'your-image-resized-10.jpg'
},
resize200: {
name: 'resize',
params: {
width: 200,
height: 200
},
save: 'your-image-resized-200.jpg'
}
}, {
get_exif: true
}).then(function(response) {
console.log(response);
}, function(error) {
console.error(error);
});