What does this AWS Solutions Implementation 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. The solution provides dynamic image handling to help you maintain high-quality images on your websites and mobile applications to drive user engagement.

Click here for related content 

Benefits

Dynamic content delivery

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

Content moderation
blank

Detect and blur inappropriate images using Amazon Rekognition.

Smart cropping
blank

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
blank

Save on storage costs because the solution automates version control, eliminating multiple versions of images.

AWS Solutions Implementation 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 | Architecture diagram
 Click to enlarge

Serverless Image Handler Solutions Implementation 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.

Serverless Image Handler

Version 5.2.0
Last updated: 01/2021
Author: AWS

Estimated deployment time: 15 min

Estimate cost  Source code  CloudFormation template 
Use the button below to sign up for updates to this Solutions Implementation via email.
Did this Solutions Implementation help you?
Provide feedback 
Video
Solving with AWS Solutions: 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. This means you need to store multiple versions of images, depending on the device. 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 a Solution yourself

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

Learn more 
Find an APN partner
Find an APN Partner

Find AWS certified consulting and technology partners to help you get started.

Learn more 
Explore icon
Explore Solutions Consulting Offers

Browse our portfolio of Consulting Offers to get AWS-vetted help with solution deployment.

Learn more