Automated Visual Preprocessing Pipeline FastAPI OpenCV Pillow n8n
Simulate the containerized Google Cloud Run microservice: accepts public direct image links (no uploads), computes mathematical center crops, overlays 3-word captions on high-contrast footer banners, and enforces header API key authentication.
requests (streaming)
numpy (matrix array)
secrets.compare_digest
Google Cloud Run
Docker 3.11-slim
๐ Header API Key Authentication
Authenticated (200)
X-API-Key Request Header
Required for all calls
๐ Direct Image URL Ingestion
No Uploads Mode
Public Image URL
Direct link only
Caption (Exactly 3 Words)
3 / 3 Words
Footer Banner Style
Bottom-Center
Crop Aspect Ratio
OpenCV Center Crop
1:1 Square
800 ร 800
4:5 Portrait
800 ร 1000
16:9 Wide
1280 ร 720
9:16 Reel
720 ร 1280
Typography Font Size
52px
Resolution: 800 ร 800 px (1:1) ยท
Process Time: 38 ms
When clicking 'Execute workflow'
Manual Trigger
โ
1 item
Edit-Image
POST: https://image-service-api.run.app
โ
Node Inspector: Edit-Image (n8n-nodes-base.httpRequest)
๐งช Automated 8-Point Diagnostic Test Runner
Verifies system compliance against challenge requirements: direct URL acceptance, no multipart uploads, API key header gate, 3-word caption rule, and OpenCV aspect crop bounding mathematics.