The CloudFrontImageService is designed to eliminate the difficulties of managing images on Cloudfront distributions. The framework has built-in functionality for managing:
* The need to display images with different dimensions (i.e. thumbnails).
* The need to make changes to images (i.e. add watermarks).
* The optimal way to store images to S3 to maximize caching at the browser level and minimize your costs.
* Just-in-time uploading, so that only the specific images that are needed in your web application ever get uploaded to Cloudfront, saving you money and eliminating the need for a background process to do that work.
There are three database tables that are used to manage images in the CloudFrontImageService. A MySQL script for creating and populating the tables is included.
You will need to have the MagickWand PHP module installed.
Complete details are available on this AWS Ninja blog post.