Have you ever taken a quick selfie under harsh bathroom or office fluorescent lighting and wondered why you suddenly looked five years older than you did by a sunlit window ten minutes earlier?
It is not your imagination. In portrait photography and computer vision, lighting angle and lens focal length routinely shift perceived visual age by 2 to 4 years:
- Overhead LED / fluorescent light casts deep vertical shadows under the eyes and nasolabial folds, which both human observers and vision models read as fatigue and structural aging.
- Arm's-length wide-angle phone lenses (~24mm) slightly exaggerate central facial proportions and skin texture contrast compared to a natural 50mm–85mm portrait distance.
- Diffused front window light fills under-eye troughs evenly, often subtracting 2–3 perceived years immediately.
When I looked at existing "how old do I look" websites, I noticed two frustrating patterns:
- Almost all of them either force an account signup or upload and store your selfie on a third-party bucket.
- They spit out a single arbitrary number without separating facial cues from lighting and camera bias.
So I built HowAgeDoILook — a fast, zero-storage AI face age estimator and portrait lighting audit running 100% on Cloudflare Workers + D1.
Architecture: Zero Photo Storage by Design
The core constraint was simple: never write a user's photo to disk, R2, S3, or any database.
Here is the exact request lifecycle:
- Client-side resize & compression: Before anything leaves the browser, an HTML5 Canvas resizes the portrait to a lightweight JPEG (~1024px max dimension) and strips unnecessary EXIF metadata.
- Volatile-memory edge processing: The Cloudflare Worker receives the base64 payload in volatile memory, runs a structured multimodal vision prompt calibrated for perceived age range, Youthfulness Score (0–100), and lighting/lens bias, and returns clean JSON.
- Immediate discard: The image buffer goes out of scope the moment the Worker responds. Only anonymized aggregate statistics (such as average perceived age delta) are written to Cloudflare D1 so the site can show live benchmark percentiles without keeping a single image.
- Try without uploading: Because privacy-conscious visitors rightly hesitate before uploading their own face to a new site, the homepage includes three built-in sample portraits (Window Light, Overhead Office LED, Outdoor Golden Hour) so anyone can inspect the output format first.
Separating Lighting Bias From Perceived Age
Instead of returning a bare integer like "32", the vision pipeline evaluates two distinct layers:
- Perceived visual age & calibrated range (e.g.,
27, range25–29) plus a Youthfulness Score (0–100). - Lighting & camera bias delta (e.g.,
+2.5 years from harsh overhead shadowsor-1.5 years from soft front window light), so users immediately see whether a photo looks older because of lighting rather than skin or facial structure.
Users also get a client-side Canvas share card and a privacy-safe Friend Challenge link that only encodes the numeric score in the URL — never the photo.
Why Pure Cloudflare Workers SSR?
For an interactive tool that also needs instant first-paint speed and clean search/AI indexing, serving full SSR HTML directly from a single Cloudflare Worker turned out to be dramatically simpler and faster than maintaining a separate frontend host and API server:
- Sub-50ms TTFB globally at the edge
- Zero cold starts
- Built-in IP rate limiting and D1 analytics in the same Worker
If you want to test how much your room lighting is aging your selfies (or just click one of the three sample portraits without uploading anything), you can try it here: HowAgeDoILook — Free AI Face Age & Lighting Estimator.
Feedback on how accurate the lighting bias estimate feels on your own window-light vs. indoor-LED photos is very welcome!

