A PHP Framework for Hosting Images on Amazon CloudFront

Sample Code & Libraries>PHP>A PHP Framework for Hosting Images on Amazon CloudFront
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

A PHP library for managing images on Amazon Cloudfront. Support versioning, multiple dimensions (e.g. thumbnails) and just-in-time uploading to minimize S3 resource use.

Details

Submitted By: James Muntz
AWS Products Used: Amazon CloudFront
Language(s): PHP
License: GNU General Public License (GPL version 2)
Source Control Access: http://github.com/awsninja/awsninja_cloudfrontimageservice
Created On: June 13, 2010 3:13 PM GMT
Last Updated: August 16, 2010 5:07 PM GMT
Download

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.

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.