Yeah, something I can use on the backend, 70% of my storage is probably oversize gifs ๐
Discussion
Ok, let me DM you with info and tech details! ๐ถ๐พ๐ซก
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..
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.
Thinking this AWS grant will last 6-8 months, will likely move platforms after..