Inspiration
The message you hesitate to click gets most of the attention. The photo you are about to share is just as easy to get wrong. You crop an address out of a listing, or a sign out of the edge of a frame, and the file can still remember exactly where the camera was standing, which phone took it, or what used to sit just outside the crop — tucked into metadata, or into a hidden preview. Most tools that “clean” a photo want you to upload it. We wanted a last look that happens on the device, explains itself, and stays honest about what it cannot see.
What it does
- Inspect: drop, paste, or choose a JPEG, PNG, or WebP. In a moment the file is “developed” in a darkroom view: a verdict, named traces, and a 60 fps safelight atmosphere. Nothing is uploaded. There is no account and no server.
- Location, without a street address: if the file still carries GPS, Safelight shows a precise coordinate on a rangefinder and names nearby public landmarks from official NYC Parks data (plus a short list of well-known public places). It will not reverse-geocode the pin into a street address, because that would make a leak more explicit.
- Hidden preview: many cameras tuck a smaller JPEG into the metadata. If you cropped later, that preview can still show the original scene. Safelight puts the preview and the visible crop side by side.
- Device and identity traces: camera make and model, software, timestamps, author, copyright, comments, and serial numbers, each explained in plain language.
- Redact and export: burn a bar or diffuse details in the pixels yourself, then download a clean copy. Without marks, a JPEG is stripped losslessly (the picture bits are kept). With marks, the copy is re-encoded so they stay put. A clean-copy check re-scans the new file and reports whether any traces remain.
- Four synthetic examples are included so a judge can try the full workflow without using a personal photo. GPS pins, if any, are planted on public plazas. The yard-sale sign uses the fake address “12 Demo Court,” marked SAMPLE.
Safer outcome (one example): a sidewalk-listing photo still had a GPS pin at Union Square Park, accurate enough to identify a building. After Safelight, the clean copy has no GPS, no hidden preview, and no identifying metadata.
Limitation (one example): Safelight cannot automatically find faces, license plates, documents, or street signs in the pixels. Visual clues can still give a location away. Use the burn or diffuse tools for those, and do not treat a clean copy as a guarantee of anonymity. If a photo needs to stay intact as legal evidence, do not strip it until someone who should decide that says so.
How we built it
A zero-backend static web app in vanilla JS ES modules, with no frameworks and no runtime dependencies.
- A from-scratch EXIF / JPEG / PNG / WebP parser and a lossless JPEG metadata stripper that keeps color-critical segments (JFIF, ICC, Adobe APP14) and drops personal APPn and comment segments.
- An explainable findings engine (no opaque score): hidden location, hidden preview, identity traces, or routine device details, each with a reason.
- A rangefinder visualization and a bundled gazetteer of official NYC Parks Properties centroids (dataset
enfh-gkve, retrieved November 27, 2026) plus well-known public landmarks. Nearest-landmark language is distance and place name only — never a street address. - On-image redaction, 60 fps darkroom atmosphere (canvas bloom, dust, grain), and Web Audio cues with a mute toggle (M) remembered locally.
- GitHub Pages deploys
public/via.github/workflows/pages.yml.
Challenges we ran into
- Being useful without making a leak worse. Showing a precise pin is the point; printing a street address would be a new risk. We only orient against public landmarks and say so in the UI.
- Lossless versus redacted exports. A metadata-only strip should not re-encode the picture. A burn mark has to be baked in. The app picks the path and explains which one it used.
- Thumbnails that outlive the crop. The “crop that was not enough” example is a real EXIF thumbnail of the uncropped synthetic scene, not a mock overlay.
Accomplishments that we're proud of
- A complete inspect-and-clean workflow that runs offline after load, with zero network requests after the page is served.
- Responsible defaults: no uploads, no reverse geocoding to an address, honest limits, and a warning not to strip evidence.
- QA: 20 unit and data tests, ESLint with 0 warnings, and 29 headless-Chrome end-to-end checks (desktop, tablet, mobile, reduced motion, privacy policy copy, zero console errors).
What we learned
Privacy tools earn trust when they are specific about what they found, what they left alone, and what they cannot see. A confident “all clear” on metadata is not the same as a photo that reveals nothing in its pixels.
What's next for Safelight
HEIC support (or a clearer in-app export path), optional manual map confirmation without an address lookup, and a share-sheet shortcut so a photo can be checked before it leaves the phone.
Credits and limitations
English UI. JPEG, PNG, and WebP only; iPhone HEIC and PDF are not scanned (export a JPEG first). Landmark coverage is densest in New York City; other regions have fewer public points. Hours and temporary closures are not included. Canvas re-encoding (when you redact) is slightly lossy. Safelight is a prototype, not a guarantee of anonymity and not a substitute for advice about legal evidence. Official Parks data remains the work of the City of New York. Sample photos are synthetic illustrations. Code: MIT. AI assistance was used while building and documenting the project; all source, tests, and the demo were reviewed and run locally.
Built With
- canvas
- css3
- exif
- github
- html5
- javascript
- jpeg
- web-audio-api