top | item 8213761

Show HN: Ospry – Simple image hosting for developers

21 points| ryanlbrown | 11 years ago |ospry.io

10 comments

order

mdhgriffiths|11 years ago

Get started in 3 steps is assuming jQuery is being used - please include Vanilla JS option.

napoleond|11 years ago

Here you go:

   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.

morenoh149|11 years ago

pricing compared to s3: assuming 5,000 photos ~5gb of data. $0.15 for storage 40gb of outgoing traffic is $4.80 So you're basically paying double the s3 prices for convenience. This service also does image manipulation and cdn integration. So you should also calculate your expected cost of using ec2 and a cdn. (BTW not ripping on the op. I like the service and was genuinely calculating the costs for my own use case).

everettForth|11 years ago

Assuming you perfectly use the maximum capacity, at which point, the service is probably useless because no one can upload new photos.

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?

egonschiele|11 years ago

If it is purely image hosting, that is expensive. But if it does image resizing on the fly, I'd say it's worth it.

dangerlibrary|11 years ago

$10/month for 5,000 images and 40GB of transfer.

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.

jaredcwhite|11 years ago

Nice to see services like this out there. I've been extremely happy with Cloudinary and have used that on several projects. I wonder why I would choose Ospry over that? I didn't seen any mention of transformations.

ryanlbrown|11 years ago

Thanks for checking it out. Our privacy features come with every account. We also offer similar capacity to their Basic plan at lower cost. They have high total image allowances but you'd likely hit the storage limit before getting close to those totals.

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!