Back to Study Cases
R&D20245 min read

Serverless Image Transformation Engine

ServerlessSharpAWS/GCPEdge Caching

Objective

Automate the generation of multiple crop sizes and watermarks for luxury villa photos (Bali Realty) without over-provisioning storage.

Developer Approach

Use AWS Lambda or Google Cloud Functions triggered by S3/GCS uploads. Use the Sharp library for ultra-fast image processing in the serverless runtime.

Technical Optimization

Implement On-the-fly Image Optimization where images are resized only when requested and then cached at the Edge (CloudFront/Cloudflare), saving 80% on storage for unused thumbnails.

Key Learnings

  • Edge caching + on-demand resize reduces storage by ~80%
  • Sharp in Lambda/Cloud Functions gives fast, scalable processing
  • S3/GCS triggers keep pipeline event-driven and simple