๐—ข๐—ฝ๐—๐—ถ๐—บ๐—ถ๐—›๐—ถ๐—ป๐—ด ๐—œ๐—บ๐—ฎ๐—ด๐—ฒ๐˜€ ๐—ข๐—ป ๐—ฆ๐Ÿฏ ๐—ช๐—ถ๐˜๐—ต ๐—ฆ๐—ต๐—ผ๐—ฟ๐˜๐—ฃ๐—ถ๐˜…๐—ฒ๐—น If your Laravel app lets users upload images to S3, you may be storing large files. This can increase page weight, CDN traffic, and storage costs over time.

Here's how to optimize images:

You can use a service to wrap ShortPixel's API. This service will handle the optimization and return the optimized image.

To set this up:

Some key points to consider:

Source: https://dev.to/biancarus/optimizing-images-stored-on-s3-with-shortpixel-a-laravel-walkthrough-3058