Add portrait mode to a photo
Choose a photo with one or more people. The person is found automatically and the background is changed:
- Blur: a soft, lens-like background blur, from subtle to strong, like a phone's portrait mode or a wide-aperture lens.
- Colour pop: the background turns black and white while the person keeps their colours.
- Dim: darkens the background to make the subject stand out.
- Colour: replaces the background with a plain colour.
Then Download photo at full resolution.
Clean edges around hair
The segmentation model works on a small version of the photo. To keep edges sharp at full size, its mask is refined with a guided filter, which aligns the mask with the real edges in your photo (hair, shoulders, glasses), then scaled up smoothly. Busy backgrounds with colours like your hair are the hardest; strong blur hides small edge errors.
Portrait mode vs a real lens
Phones and cameras blur by distance (depth), so a background 10 m away is blurrier than one 2 m away. This tool separates person from background and blurs the whole background evenly, which works well for portraits. For people only: objects and pets aren't separated.
For your live webcam, use Background Blur. To blur any area of any photo by hand, use Image Blur.
How the AI runs
The models are Google's open MediaPipe models (Apache 2.0), served from this website and run by your browser with WebAssembly and your graphics card (WebGL). The first use downloads the model once (about 16 MB); after that it's fast. No image or video frame is ever sent to a server, and nothing is stored.
Private by design
Your camera picture, photos and videos are processed by your own browser, on your device. Nothing is uploaded, recorded on a server or used to train anything. Close the tab and it's gone.