Serverless Image Handler
Serverless Image Handler


Many Amazon Web Services (AWS) customers use images on their websites and mobile applications to drive user engagement. Websites with large image files can experience high load times, so in order to ensure a great user experience across different devices, developers often provide multiple versions of each image to accommodate different bandwidth and layout constraints. This process can be difficult to manage and cause time delays, as it often requires version control, increased storage and compute costs for file reprocessing, and coordination with application teams and web developers to update image files.

To help customers provide a low-latency website response, and decrease the cost of image optimization, manipulation and processing, AWS offers the Serverless Image Handler, a solution that combines highly available, trusted AWS services and the open source image processing suite Thumbor to enable fast and cost-effective image manipulation on the AWS Cloud. This reference implementation automatically deploys and configures a serverless architecture that is optimized for dynamic image manipulation, and that features Amazon CloudFront for global content delivery and Amazon Simple Storage Service (Amazon S3) for reliable and durable cloud storage at a low cost.


You are responsible for the cost of the AWS services used while running this solution. As of the date of publication, the estimated cost for running the Serverless Image Handler for 1 million images processed, 15 GB storage and 50 GB data transfer, with default settings in the US East (N. Virginia) Region is as shown in the table below. This includes estimated charges for Amazon API Gateway, AWS Lambda, Amazon CloudFront, and Amazon S3 storage.

AWS Service Total Cost
Amazon API Gateway $3.50
AWS Lambda $3.10
Amazon CloudFront $6.00
Amazon S3 $0.23

This cost estimate does not account for Amazon S3 PUT and GET requests, which can vary per scenario because modified images are cached in CloudFront. There is no additional cost for using Thumbor, which is an open source tool. Prices are subject to change. For full details, see the pricing webpage for each AWS service you will be using in this solution.

On this page: