Amazon Q Developer Challenge: Lambda-Based Picture Processing Utility

This is a submission for the Amazon Q Developer "Quack The Code" Challenge: Exploring the Possibilities What I Built What I was going for initially was an AWS Lambda-Based mini-clone of Cloudinary's cloud-based image processing API platform, but in the process I realized that Amazon's Q Developer cli produced code flexible enough to integrate with most external npm libraries out there. Both API responsibilities and layers are separated so that external libraries such as pdf conversion utilities and 3d renders can be included in the future dynamically and with minimal effort. So overall what was made, is a node.js v.17^ compliant image processing utility that currently supports the following: Several Image Transformation Operations (Resize, Blur, Grayscale conversion, Format Conversion, Quality Enhancement etc.) Image to Pdf Conversion Operations (Image to PDF conversion, PDF Metadata editing, Auto resize to fit-image-to PDF). Can be run on the cloud for automation via Lambda API Gateway. Includes built-in infrastructure templates to add WAF (Web Application Firewall) with relevant rate limitation for overusing AWS Lambda endpoints. Can be run by docker (included in the documentation). Entire Architecture Presented below What is not added (yet): STL file import /processing for 3d content. Handling multiple images in parallel. More usable and friendlier UI. Additional tests and infrastructure checks. Demo Standard use case displayed below: and in animated capture below: Code Repository All code is strictly written by Amazon Q + VS Code (yes even README.md) and presented with the relevant documentation in the publicized repository in the link below: chrdek / PicProcessor AWS Lambda function for image processing and PDF conversion with DDoS protection and Docker support Image Processor Lambda Function

May 4, 2025 - 21:40
 0
Amazon Q Developer Challenge: Lambda-Based Picture Processing Utility

This is a submission for the Amazon Q Developer "Quack The Code" Challenge: Exploring the Possibilities

What I Built

What I was going for initially was an AWS Lambda-Based mini-clone of Cloudinary's cloud-based image processing API platform, but in the process I realized that Amazon's Q Developer cli produced code flexible enough to integrate with most external npm libraries out there.

Both API responsibilities and layers are separated so that external libraries such as pdf conversion utilities and 3d renders can be included in the future dynamically and with minimal effort.

So overall what was made, is a node.js v.17^ compliant image processing utility that currently supports the following:

  • Several Image Transformation Operations (Resize, Blur, Grayscale conversion, Format Conversion, Quality Enhancement etc.)
  • Image to Pdf Conversion Operations (Image to PDF conversion, PDF Metadata editing, Auto resize to fit-image-to PDF).
  • Can be run on the cloud for automation via Lambda API Gateway.
  • Includes built-in infrastructure templates to add WAF (Web Application Firewall) with relevant rate limitation for overusing AWS Lambda endpoints.
  • Can be run by docker (included in the documentation).

Entire Architecture Presented below

Architectural Diagram

What is not added (yet):

  • STL file import /processing for 3d content.
  • Handling multiple images in parallel.
  • More usable and friendlier UI.
  • Additional tests and infrastructure checks.

Demo

Standard use case displayed below:

Image Import

and in animated capture below:

Image Import Video

Code Repository

All code is strictly written by Amazon Q + VS Code (yes even README.md) and presented with the relevant documentation in the publicized repository in the link below: