PixelOkay Local photo processing
Tools
Tools›Image›AI Photo Relighting
PIXELOKAY IMAGE STUDIO · FREE BROWSER TOOL

AI Photo Relighting

Change the mood of any photo with directional lighting, soft studio effects and precise highlight and shadow control — right in your browser.

✦ Movable spotlight✦ 6 lighting looks✦ Optional AI portrait mask✦ No image uploads
01 / CREATE YOUR LOOK

Relighting workspace

Choose a photograph, shape its light and compare the result.

Browser powered
No photo selected
LIVE CANVAS

Before / After

—Ready
✳

A new light starts here.

Drag a photo here or choose one to start editing.

PNG, JPG, WebP, AVIF & BMP · up to 35 MB
Add a photo to start. Your files stay in this browser.No cloud rendering

Export photo

High-resolution local export. Your original is never overwritten.

02 / WHY PIXELOKAY

Lighting control, without the complexity.

☀

Light that moves with you

Adjust direction and elevation, then fine-tune the softness, intensity and fill of your key light.

◐

Targeted refinements

Use optional on-device person segmentation or paint a subject mask to focus lighting on selected parts of the image.

↓

Keep every pixel local

Images are decoded, adjusted and exported in your browser. Optional AI downloads model software, not your image.

Frequently asked questions

Does AI Photo Relighting truly reconstruct the light in a 3D photo?

No. It uses image-space luminance gradients to approximate directional lighting; it cannot recover true depth, cast accurate object shadows, or reveal detail hidden in the original exposure. Optional AI detects portrait subjects only.

Does my photo leave the browser?

No photo is uploaded by this tool. When AI portrait selection is enabled, the first Apply downloads MediaPipe software and its model from third-party CDNs. Those providers may receive standard network metadata, and MediaPipe may collect runtime metrics according to its own notice. The photograph itself is processed locally.

Can I relight objects, landscapes, and products?

Yes. Entire-photo lighting and manual masks work with most image types. The optional AI selection is trained to identify people rather than general objects.

Why can high-resolution photos look different from preview?

Preview is resized for interactive performance. Exports are rendered from the original source up to the documented maximum. Lighting is approximate and fine details may vary slightly with resolution.

LOCAL AI SETUP

Set up AI on this device

First, load a compatible portrait model

Person segmentation runs locally using MediaPipe CPU/WASM. Setup downloads a free model and runtime from external hosts only after you choose Download & Load. Relighting, spotlight, and painted masks work without AI.

  1. 1. Check device
  2. 2. Download / cache
  3. 3. Set up portrait AI
  4. 4. Start selection
MediaPipe Selfie Segmenter · float16 · CPUPerson/portrait mask only; not an image relighting model or general-object segmentation model. Source: Google MediaPipe. No GPU requirement. Browser/worker support required.Checking shared model cache…

Device & model resources

Device RAM / model working memoryChecking device information…

Live RAM and GPU memory usage are unavailable in ordinary browsers.

Browser website storageChecking storage…

Estimated website origin storage. Not RAM.

ONE ACTION · ALL RECOGNIZED AI MODEL DOWNLOADS

Free AI model storage across PixelOkay

Inspect this website origin for recognized WebLLM, Transformers.js, MediaPipe model buckets, and safely identifiable model files, including models cached by other PixelOkay tools. Unrelated website data and browser databases are not automatically cleared.

Inspect to identify verified removable model caches. Other running AI tabs may need to redownload models.

Unknown IndexedDB/OPFS/browser-managed caches are excluded. Close other AI tabs before deletion. Saved projects and drafts are not targeted.

Portrait AI is optional.

Live model RAM: unavailable in this browser.

Having trouble downloading or loading AI?

Try Refresh Storage & Cache, then Retry Setup. Network, browser WASM/worker, or device limitations may cause failures unrelated to storage. Use Manual mask or Entire photo for a model-free alternative. Never clear all website data without first backing up your work.

Technical details

Checking compatibility…

Worker not started. No model download has begun.

No API key · local image inference
CONFIRM MODEL CACHE CLEANUP

Remove recognized AI model downloads?

Only safely recognized model caches are targeted. Other PixelOkay tools may need to download them again. Close other AI tabs before continuing. This operation does not deliberately delete chats, projects, imported images, website settings or unrelated storage.

Using AI Photo Relighting

Open a supported photograph, choose a lighting look and adjust direction, tone or the local spotlight. Target the whole image, a painted region or an optional AI person mask. Apply, compare and export; reusable JSON contains settings rather than photos or masks.

Lighting uses deterministic image-space approximations, not true depth, 3D reconstruction or generative scene synthesis. It cannot recover occluded textures or create physically accurate new shadows. Optional person segmentation downloads MediaPipe assets and has external request/privacy boundaries. File/preview/export limits and device memory apply. JPEG uses a white matte and most source metadata is discarded.

References: MediaPipe Image Segmenter

Workflow and output choices for AI Photo Relighting

Adjust image-space lighting direction, tone and softness, then compare the whole-image effect, a painted region or an optional person mask.

Reusable JSON stores settings rather than the photo or mask. Exported JPEG uses a white matte and most source metadata is discarded; keep the original separately.

Example workflow

  1. Open a supported photo and choose a look, then adjust direction, intensity and tone.
  2. Limit the effect with a painted mask or spotlight; optionally request a person mask when that helps.
  3. Compare the result with the original and export the image or settings backup.

Authored example: On a fictional portrait, compare a whole-image light adjustment with a localized spotlight and inspect the background for unwanted changes. This is an authored review exercise, not a physically accurate lighting demonstration.

Limits and model handling: Lighting uses deterministic image-space approximations, not inferred depth, 3D reconstruction or generative scene synthesis. It cannot recover occluded texture or create physically correct new shadows. Optional person segmentation downloads MediaPipe assets and makes external requests.

AI Photo Relighting questions

Does the relighting tool reconstruct 3D depth or realistic new shadows?

No. It applies image-space lighting approximations and cannot infer true geometry or create physically accurate new shadows.

Does the optional person mask use a downloaded model?

Yes. The optional MediaPipe person segmentation loads external runtime/model assets; the manual and whole-image lighting controls are separate.

Related tools