What does this AWS Solution do?

This solution creates a serverless architecture to initiate cost-effective image processing in the AWS Cloud. The architecture combines AWS services with sharp open-source image processing software and is optimized for dynamic image manipulation. You can use this solution to help you maintain high-quality images on your websites and mobile applications to drive user engagement.

Click here for related content 


Dynamic content delivery

Deliver dynamic images at run-time based on your customer’s device.

Content moderation

Detect and blur inappropriate images using Amazon Rekognition.

Smart cropping

Crop images using the facial recognition capabilities of Amazon Rekognition.

Interactive web interface

Deploy a simple web interface where you can to interact directly with your image handler API endpoint using image files that already exist in your account.

Low-cost storage

Save on storage costs via automated version control, eliminating multiple versions of images.

AWS Solution overview

The diagram below presents the serverless architecture you can deploy in minutes using the solution's implementation guide and accompanying AWS CloudFormation template.

Serverless Image Handler Solution architecture

The AWS CloudFormation template deploys the following resources:

  1. An Amazon CloudFront distribution that provides a caching layer to reduce the cost of image processing and the latency of subsequent image delivery. The CloudFront domain name provides cached access to the image handler API.
  2. Amazon API Gateway to provide endpoint resources and initiate the AWS Lambda function.
  3. A Lambda function that retrieves the image from a customer’s existing Amazon S3 bucket and uses Sharp to return a modified version of the image to the API Gateway.
  4. An Amazon S3 bucket for log storage, separate from your customer-created S3 bucket for storing images. If selected, the solution deploys an S3 bucket for storing the optional demo UI.
  5. If you activate the image URL signature feature, the Lambda function retrieves the secret value from your existing AWS Secrets Manager secret to validate the signature.
  6. If you use the smart crop or content moderation features, the AWS Lambda function calls Amazon Rekognition to analyze your image and returns the results.
Use the button below to sign up for updates to this Solutions Implementation via email.
Did this Solutions Implementation help you?
Provide feedback 
Solving with AWS Solutions: Serverless Image Handler
Case Study
Perpetual Case Study

When product design and software development company Perpetual began working with a new sports startup client, Perpetual quickly realized that it needed a solution for an image management tool that was both flexible and cost effective. Perpetual found the optimal fit for its challenge: Serverless Image Handler.

AWS Architecture Blog
Fast and Cost-Effective Image Manipulation with Serverless Image Handler
As a modern company, you most likely have both a web-based and mobile app platform to provide content to customers who view it on a range of devices. The resulting image management can be a headache as it can be expensive and cumbersome to manage.
Serverless Image Handler (SIH) is an AWS Solution Implementation you use to store a single version of every image featured in your content, while dynamically delivering different versions at runtime based on your end user’s device.
Read the full blog post 
Back to top 
Build icon
Deploy an AWS Solution yourself

Browse our library of AWS Solutions to get answers to common architectural problems.

Learn more 
Find an APN partner
Find an AWS Partner Solution

Find AWS Partners to help you get started.

Explore icon
Explore Guidance

Find prescriptive architectural diagrams, sample code, and technical content for common use cases.

Learn more