Portrait Retouch
Operator: Abdulla Al Fahad. How tools are built and checked
Most portrait fixes are small: a blemish, a shine, a shadow under the eyes, teeth a shade too yellow. Those are the only fixes it offers. It finds the faces with MediaPipe's face landmarker, builds masks for the skin, eyes and teeth, and applies gentle, capped changes so the picture still looks like the person.
It does not slim, reshape or enlarge anything, and it makes no attempt to push a face toward a standard of beauty. Smoothing keeps a share of the skin's own texture, and each effect has a slider that starts at off or at a modest value.
Each detected face is handled on its own, so you can leave one untouched, and the Save button repeats the same steps on the full-size picture.
Key features
- Skin smoothing by edge-preserving frequency separation with a guided filter, keeping a share of the texture you choose
- Spot heal: click a blemish and a PatchMatch fill replaces a disc from the texture around it
- Under-eye lightening that raises dark shadows toward the face's average lightness, capped at 12 of 100 lightness units
- Eye brightening limited to light, low-colour pixels in the eye outline, away from the iris, and teeth whitening that lowers yellow only on light pixels inside the lips
The effects, their limits and the face regions
PNG, JPEG, WEBP and BMP files are accepted, the long side is limited to 6,000 px, and up to five faces are found in one picture. The save format is PNG or JPEG at quality 95.
The face landmarker model (float16, 3.7 MB, Apache-2.0) and its WebAssembly are served from this site. The region outlines (face oval, lips, eyes, eyebrows, irises) come from the MediaPipe package's own connection tables rather than hand-typed index lists.
How it works
For each face the skin mask is the face oval minus the eyes, brows and lips, with a soft edge. Smoothing runs a guided filter on each colour channel using the luma as the guide, which smooths flat skin but follows real edges such as the jaw and hairline. The result is the low band plus the kept share of what the filter removed, blended in by the mask and the strength.
Under-eye lightening finds the area below each eye and lifts pixels toward 97% of the skin's average lightness. Eye and teeth work happen in CIE Lab: whites gain a little lightness and lose a little colour, teeth lose yellow, each weighted by how light and how uncoloured a pixel is so shadows, gums and the tongue are left alone. The preview is drawn from a copy of at most 1,400 px; saving repeats the work on the full picture in a background worker, spot by spot and then face by face, with a progress bar and a Cancel button, so the page stays usable while a large picture is saved.
Common use cases
- A headshot for a company page: smoothing at 0.4, texture kept at 60%, under-eye at 0.3, and two spots healed.
- A family photo with three faces: smoothing on for two of them, off for the third, and nothing else changed.
- A wedding guest's phone portrait with a shiny forehead and a spot on the chin: smoothing at 0.25 with 70% of the texture kept, one spot healed, everything else left alone.
- A batch of team photos for an intranet: open each in turn, keep smoothing low, and save at full resolution as JPEG at quality 95 to keep the files small.
How to use this tool
- Open a portrait and wait for the faces to be found.
- Set smoothing for each face and raise the texture share if the skin looks plastic.
- Add under-eye, eye and teeth adjustments sparingly.
- Switch on spot heal and click blemishes.
Example
A 12-megapixel JPEG (4,000 × 3,000 px) enlarged from a small crop of a photograph of cyclists, so the two faces in it are soft
Default settings: smoothing 0.45, texture kept 55%, under-eye, eyes and teeth off, no spots healed; then 60 spots healed and a full-resolution PNG savedFaces found, timing and what changed
Both faces were found, in 675 ms on the test machine's CPU (a 12-megapixel picture is searched from a copy of at most 1,400 px). The retouch changed only pixels inside the face and eye regions; everything outside the face band was identical to the original. Saving with 60 healed spots took about 20 seconds in the background worker while the page kept responding, and wrote a 4,000 × 3,000 PNG.Tips for best results
- Judge at 100% zoom on the saved file, not only in the 1,400 px preview.
- Raise the texture share before raising the strength; keeping pores is what makes the skin look real.
- Use the before and after divider to check an effect, then lower the slider by a notch; the effects look most natural when you can only just see them.
- Heal spots with a size just larger than the blemish. A big disc borrows texture from further away and is more likely to show.
Common pitfalls
Profile views, faces covered by hair or hands, and very small faces are often not found, and a face found in one photo can be missed in the next. The page lists the faces it found; if one is missing, it is not retouched.
Heavy smoothing flattens real features like freckles and scars, so a person may look unlike themselves.
Common errors and how to fix them
- Saving takes a long time and the progress bar moves in steps
- Every spot is healed again at full resolution, one at a time, so a large picture with many spots takes many seconds (60 spots on a 12-megapixel picture took about 20). The page stays usable and Cancel stops the save; fewer spots, or a smaller picture, save faster.
- No face was found, or spot heal leaves a visible patch
- Use a picture where the face is mostly visible, faces the camera and is large in the frame. For a visible patch, use a smaller spot size and avoid healing across sharp edges such as lips or eyebrows.
Best practices
- Work from the original file, not a copy that has been smoothed or sharpened already, and keep the original: the saved file is a new picture, not an edit you can step back through.
- Save as PNG while you are still editing and as JPEG only for the final copy, so the retouch is not compressed twice.
What it deliberately does not do
There is no face reshaping, no slimming, no eye enlargement and no skin lightening. Smoothing and every other effect shifts colour as little as possible, and the page reports how far each face's average skin colour moved (ΔE, where about 1 is the smallest visible change) next to its sliders. If a result starts to look like a different person, reduce the effect: the aim is the same face on a better day.
What detection finds and what it misses
Faces are located by MediaPipe's face landmarker, which returns 478 points per face, running on the CPU in your browser. On the 12-megapixel example it found both faces in 675 ms, from a copy of at most 1,400 px, and only the face and eye bands changed. It looks for faces that are mostly visible and facing the camera, so profile views, faces hidden by hair or hands, and very small faces are often not found.
When no face is found the page says so and offers no retouch controls, because every effect is applied through a face mask. Crop the picture so the face is larger, or try a frame where it is turned towards the camera.
Frequently asked questions
Does it send my picture anywhere?
No. The face model and its runtime are files from this site, and everything runs in this tab.
Can it handle several faces?
Yes, up to five. Each has its own enable switch and smoothing slider; the other effects are shared.
Why does saving take longer than the preview?
The preview is a copy of at most 1,400 px. Saving repeats every step on all the pixels, in a background worker with a progress bar, and spot heals are the slowest part: 60 spots on a 12-megapixel picture took about 20 seconds. Cancel stops it.