So you can probably start here: https://imageoptim.com/versions.html and https://trimage.org

Longer term, assuming you use AWS, you should look into Lambda to do that for you. You basically upload file to S3 and then trigger a lambda to optimize the file. If you want me to help you with that, do not hesitate to DM me. Otherwise this should be a good start for your current setup! 🐶🐾🫡

Can AWS lamda do Gifs, I thought just videos? Interesting, thank you, let me look into it. I’m likely moving to S3 soon, so that could work..

Reply to this note

Please Login to reply.

Discussion

Lambda is just a docker on steroids! Again, if you need help or want to converse about it, let me know in DM! 🐶🐾🫡

Recommend against AWS S3. You'll have better performance and lower costs (no egress fees) using Cloudflare R2 bucket instead , which is also S3 API compliant.

Yeah, I already suggested it but in his current situation S3 makes sense. He has a startup grant from AWS! 🐶🐾🫡

Ah nice, yes that make sense then. At least it'll be easy to migrate to Cloudflare R2 when the time comes 😎

Yep, that is the right way! CF also has some startup programs but I think it can be easier to get going in AWS! 🐶🐾🫡

It's also easy to add a non-AWS-CloudFront domain for CDN to the S3 bucket. So, with a CNAME record at Cloudflare could be used (ex: files.nostr.build) and with the $20/m Pro plan to enable the Lossy image optimisation from the edge, rather than server-side. That would also deliver WebP to help speed up delivery for web-based nostr clients.

One step at a time, yes. 🐶🐾🫡🫂

I can’t wait to start doing all of this…. Yes, still need to finish building the website :)

Thinking this AWS grant will last 6-8 months, will likely move platforms after..