News for hackers. Stuff that matters.

Ask HN: Image Hosting Service Reccomended?

I'm planning to build a website for some friends, and It will have around 30 images (art and photography, non propietary). I'll write a simple CMS so they can add/remove images, which Image hosting service do you think is best for this task? AWS S3 seems too complicated to setup in the free tier, bbImage looks like an option, any suggestions very much appreciated, thanks!!!
( 5 comments | 3 points | on HN )
Re:Ask HN: Image Hosting Service Reccomended? by rovr138 on Saturday March 05, 2022 @12:19AM (#30564537)
Will you have a filesystem? If so, you can store them there.

If not, store it on your database as blobs.

Regardless on which one above you choose, if you implement something like Cloudflare, you can get a CDN for those images. If you don't want everything behind Cloudflare, you can have the images served under a different subdomain and have that under cloudflare.

If not, an alternative to S3 is Google Cloud Storage. Create a bucket. Set it as public (everything in the bucket is available) and then you just need to worry about upload.

Here's a quick example in python, https://pypi.org/project/google-cloud-storage/

    bucket = client.get_bucket('bucket-id')
    new_blob = bucket.blob('remote/path/storage.txt')
    new_blob.upload_from_filename(filename='/local/path.txt')
    # or
    blob.upload_from_string('New contents!')
Re:Ask HN: Image Hosting Service Reccomended? by zelon88 on Saturday March 05, 2022 @12:35AM (#30564629)
I second your local filesystem suggestion, also your database suggestion.

30 images doesn't seem like it's worth a separate service contract.

Re:Ask HN: Image Hosting Service Reccomended? by evolve2k on Monday March 07, 2022 @02:12AM (#30585009)
We use Cloudinary. All images are served over their CDN network and it's free on their smaller teir. They also have an adaquate User Interface so you can drag and drop images etc.

Free teir offers up to 25GB of net viewing bandwidth. Plenty for what ur doing.

https://cloudinary.com

Re:Ask HN: Image Hosting Service Reccomended? by 0xtaj on Saturday March 05, 2022 @01:53PM (#30570638)
Lychee or Pixelfed. On mobile so I don’t have links handy but a quick DDG search should turn them up.
Re:Ask HN: Image Hosting Service Reccomended? by gmzi on Saturday March 05, 2022 @12:22PM (#30569524)
thank you so much for your suggestions, I'll try to implement a file system with some kind of cms my friends can use to add or remove images