The pipeline
- Open. Your browser decodes the image locally (JPG, PNG, WebP, AVIF; HEIC in Safari) and corrects its rotation.
- Plan. The tool checks how big the result would be and what your device can hold, and picks a safe size. It tells you if it had to scale anything.
- Enhance. A Web Worker runs the AI model over the image in overlapping 256-pixel tiles (128 on the processor), so even large photos fit in memory and the page stays responsive. Overlap and mirrored edges make tile seams invisible.
- Resize. The model always works at 4×. For 2× and 1× the 4× result is averaged down, which turns the model into a high-quality denoiser and sharpener at smaller sizes.
- Light & color. A WebGL shader applies auto levels, white balance, exposure, shadows, highlights, contrast, vibrance, clarity and sharpening at full resolution, live, as you move the sliders.
- Save. Your browser encodes the JPG, PNG or WebP and saves it. Nothing was sent anywhere.
The models
PhotoEnhancer uses the compact versions of Real-ESRGAN by Xintao Wang and colleagues at Tencent ARC Lab (BSD-3-Clause license), converted to ONNX:
| In the app | Model | Good for |
|---|---|---|
| Balanced | realesr-general-x4v3 blended 50/50 with its weak-denoise variant | Most photos |
| Fine detail | realesr-general-wdn-x4v3 (weak denoise) | Texture: skin, fur, foliage, landscapes |
| Clean | realesr-general-x4v3 (full denoise) | Noise, grain, JPEG blocks |
| Art & anime | realesr-animevideov3 | Illustrations, anime, cartoons, logos |
The general models are about 4.9 MB each and the anime model about 2.5 MB. Your browser downloads the one you use once and keeps it in its cache.
The runtime
ONNX Runtime Web (by Microsoft) executes the model. On browsers with WebGPU (recent Chrome, Edge and Safari) it runs on your graphics card and most photos take seconds. Elsewhere it runs on your processor with multi-threaded, SIMD WebAssembly: same result, slower. To keep processor runs reasonable, very large inputs are processed at up to 2 megapixels there, and up to 12 megapixels with WebGPU.
Privacy, verified
You don't have to take our word for it. Open your browser's developer tools, go to the Network tab and enhance a photo: you'll see the model file downloaded and nothing uploaded. Or load the page, switch off Wi-Fi and keep enhancing. We have no server that could receive your photos. See the privacy policy.
Limits
- Results up to about 50 MP on desktop browsers and about 16 MP on Safari and phones (browser canvas limits).
- No face-specific model, colorization or scratch repair yet. We prefer restoring real detail to inventing it.
- Speed depends on your device. A recent laptop with WebGPU is fastest; an older phone without it can take a minute for big photos.