So, Podnews’s image server is a bit dead. It was a PHP box that:
a) did a database lookup to find the external URL of an image
b) fetched the image
c) resized it to a specific size, in either AVIF or JPG format
d) uploaded it to Amazon S3
e) output the image (but should probably 301 redirect to the S3 file address).
I’m assuming that the “right” way to do this would be a Lambda function, and not a full server. I wonder whether I could achieve the above by asking an AI tool very very nicely to write the code for me. I wonder where I even start. Would anyone have any useful pointers to an easy “how to” guide?
@james maybe this is an option? https://www.cloudflare.com/en-in/developer-platform/products/cloudflare-images/
Cloudflare Images | Storage, resizing, and delivery