When we launched ColorizeOldPhotos, two real-world user constraints immediately shaped our architecture more than any AI model benchmark:
- Over half of mobile users upload iPhone
.heicphotos directly—not clean flatbed JPG scans. - People uploading irreplaceable family portraits care deeply about privacy and want clear, verifiable retention guarantees rather than vague marketing copy.
Here is how we structured both in a Next.js + Cloudflare Workers app.
1. Converting iPhone HEIC on Upload Without Bloating the Client
Most image-processing APIs expect JPEG, PNG, or WebP, while iOS Photos defaults to HEIC. Asking non-technical users to manually convert files before uploading kills conversion rates.
Instead of shipping a multi-megabyte WASM decoder to every visitor's browser, we accept .heic up to 12 MB alongside JPG/PNG/WebP and normalize it server-side into JPEG before passing it to the restoration pipeline.
We also documented a quick lighting and angle guide for folks who don't own a flatbed scanner: Best way to scan old photos with an iPhone.
2. Hard 24-Hour Expiry Instead of Indefinite "Cloud Galleries"
Many photo tools keep user uploads indefinitely to drive re-engagement emails. For family archives, that creates unnecessary liability and makes privacy-conscious users hesitate.
Our retention rule is intentionally boring and strict:
- Uploads and processed outputs expire 24 hours after upload (always purged within 48 hours).
- Previews (720 px watermarked) require no sign-up, so visitors can inspect quality on a before/after slider before creating an account or spending a credit.
- Uploads are never used to train models.
We also published a general privacy checklist before uploading family photos to any AI tool covering retention windows, third-party model subprocessors, and how to verify deletion policies.
Takeaways for Indie Web Tool Builders
- Meet users' real file formats (especially HEIC on iOS) instead of bouncing them with an "Unsupported format" toast.
- Short, deterministic data retention lowers both storage costs and user anxiety—and turns privacy from a footnote into a feature.
How are you handling HEIC uploads and temporary media expiry on Cloudflare Workers or R2? Always curious to compare patterns!
