var ospry = new Ospry('YOUR_PUBLIC_KEY');
//UPLOAD
var el = document.getElementById('up-form');
el.addEventListener('onsubmit',function(e) {
e.preventDefault();
ospry.up({
form: this,
imageReady: imageReady,
});
},false);
//DOWNLOAD
ospry.get({
url: metadata.url,
maxHeight: 400,
imageReady: function(err, domImage) {
document.appendChild(domImage);
},
});
It's the same amount of steps.It's super easy to do this if you're already running your website on ec2, and S3 for a few hundred photos will cost you less than a dollar per month.
Is this for Heroku users because running a single dyno to resize images costs $30 / month?
No bulk bandwidth pricing, but $0.15/GB isn't a huge mark up over Rackspace's initial bandwidth price of $0.12. With room for 5000 images (2.5GB? 5GB?), it's a pretty slim margin if users really push it to the limit.
Not a bad deal, all things considered.
We have more image processing features on the way, we'd love to hear your suggestions. Shoot us a mail at hello@ospry.io. Thanks!