Loading large image files on your webiste is not only bandwidth intensive but it also negatively affects SEO. You can use software such as Adobe Photoshop to manually compress your images before storing them but that's a time consuming process so why not do this automatically. In this blog I will show you how you can use AWS Lambda and Amazon S3 to automatically compress images that have been uploaded to an S3 bucket and display them in your Laravel application.## Prerequisites For this demo you will need the following: * An AWS Account## Create the IAM Policy & Role
AWS
Compress Images Using AWS Lambda and S3
Compressing large images not only helps reduce bandwidth, but it also helps with SEO. Learn how we compress images automatically for optimal results.
R
Robert Fountain
Founder ยท 131 Studios
Published
Jul 7, 2025
Jul 7, 2025
Read time
1 min
1 min
Keep reading
More from the blog.
Migrating your web server with zero downtime using Laravel Envoyer & Forge
Migrating your web server with zero downtime using Laravel Envoyer & Forge
Sep 18
Compress Images Using AWS Lambda and S3
AWS
Compress Images Using AWS Lambda and S3
Jul 7
how we used aws lambda to read files from a google drive
how we used aws lambda to read files from a google drive
Jul 7
Need help with your next project?
We build custom websites and applications for businesses ready to grow online.
Book a free consult