Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

datarecall's avatar

Vapor Image Optimization

We are looking at deploying a site on Vapor, however we have a lot of files that are user uploaded (we can store on s3) but is there a way to use some sort of Image Optimization so we can optimize these files prior to them hitting s3?

I might be wrong but since you can't install any 3rd party software I cant see it being possible and not much in the way of googling has helped.

0 likes
2 replies
bobbybouwmann's avatar

You can't really do that with Vapor unless you can find a dependency that doesn't require any extra server updates. As far as I know, there is none at this point.

Another solution is using AWS services to manage this. Cloudfront can help you with this a lot. I'm not sure how well it integrates with Vapor, but you can always contact the support to see if they can help you out.

You can find more information here: https://aws.amazon.com/solutions/implementations/serverless-image-handler/

Please or to participate in this conversation.