Background removal here means running the ormbg ONNX model (Apache-2.0) inside your tab. It is not an upload API. The interesting choice is how the browser executes that model: WebGPU when possible, otherwise CPU with a WASM runtime path.
Prefer WebGPU when it is available
- Open Capability and check whether this browser reports WebGPU.
- If a GPU adapter exists, LocalPix prefers WebGPU for inference speed on typical laptop/desktop GPUs.
- If the adapter is missing (common on some locked-down corporate images, older browsers, or remote desktop setups), forcing WebGPU cannot help — the tool should fall through rather than hang.
When WASM / CPU is the right path
- No GPU adapter — WebGPU is skipped; CPU/WASM keeps processing local.
- WebGPU init fails after you press Remove background — fallback exists so a single broken GPU path does not strand the file on a server (there is no server cutout).
- You are verifying privacy — WASM still runs in-process. Model weights may download from allowed hosts after you press Remove background, not when you choose the file. Your photo should not POST to the LocalPix origin. See Verify local.
WASM is not “more private” than WebGPU by itself. Both keep pixels in the tab. WASM is the compatibility lane.
What downloads (and what must not)
- Before file pick: page CSS/JS only. Large ormbg weights should not start eagerly.
- After you press Remove background: you may see ONNX / WASM / CDN requests (for example
/api/modelsfor ormbg). That is model delivery, not your photo leaving the device. Choosing the file does not start that download. - Download of the cutout: a local
blob:URL. No multipart upload of the result to LocalPix.
Practical checklist
- Open Remove background. Before you press the button, read the line under it. It reports a WebGPU adapter, or that this browser will use WASM/CPU. Capability shows the same check without a photo.
- Drop a PNG, JPEG, or WebP and press Remove background. The ormbg weights download on that press, through
/api/models, for an entitled session. Choosing the file does not start that download, and the photo is not in the request. - If the status says WebGPU inference failed and the page reloads on WASM/CPU, wait for that second run. There is no server cutout. A slow WASM pass is still local. Try a smaller source image, or a machine whose line shows a WebGPU adapter.
- HEIC will not drop here. Convert it with HEIC to JPG first. The libheif file on that page is a different WASM download. It is not the background-removal runtime.
How it works
Remove background decides the backend when you press Remove background, not when the page loads. It calls navigator.gpu.requestAdapter() when WebGPU exists on the page. A null adapter counts as no WebGPU. That is common on a locked-down corporate image, a remote desktop, and a headless browser that still exposes navigator.gpu. In that case the tool skips WebGPU init and loads ormbg on WASM directly, instead of hanging on a device it cannot create.
If an adapter does come back, the first attempt is WebGPU. A failure to create the inference session falls through to WASM. Both attempts use the same q8 weights, 44,315,205 bytes, about 42 MB, fetched through /api/models for an entitled session. Transformers.js loads from jsDelivr. ONNX Runtime’s WASM files are the runtime. None of those requests contain the photo. Opening the page does not start the large download. Choosing a file keeps it in the tab and enables the button. The weights start when you press Remove background. Production does not auto-fetch the Hugging Face copy of ormbg.
The backend does not change the mask rules. The model input is still scaled toward 1024×1024. Signed out, a download is limited to a 1024 px long side, 3 a day in this browser. A signed-in run after today’s 3 full-size credits is still 1024 px on the long side, whether the math ran on the GPU or on WASM. The 3 full-size removals on a free account still reset at 00:00 UTC. WASM is not the more private lane. WebGPU and WASM both keep the pixels in the tab. WASM is the compatibility lane, and it is often the slower one. Capability is where this browser reports whether WebGPU is present. A phone that fails the first run is usually short of memory for the weights plus the runtime. The photo has not been uploaded. Try a smaller file or a desktop browser. HEIC is a different WASM, libheif on HEIC to JPG, and this model never decodes it. If you are leaving remove.bg after 1 December 2026, see remove.bg is shutting down.
Limits
- No adapter, or a failed WebGPU session, means WASM. There is no upload-based cutout behind that fallback.
- The same ormbg file runs either way. Switching backends does not turn a bad hair mask into a different model.
- First load needs the weights plus runtime memory. Older iOS Safari often fails on a large photo.
- Quota is independent of the backend. Signed out: 3 a day in this browser, longest side up to 1024 px, resetting at 00:00 UTC. Signed in: 3 full-size a day; after that, basic 1024 px still runs.
- RMBG, BiRefNet, and BEN2 are not selected when WASM runs. The default stays ormbg, Apache-2.0.
FAQ
Does LocalPix upload my photo for background removal?
No. Inference runs in your browser with ormbg. Your image bytes are not uploaded to LocalPix servers. The ormbg weights download when you press Remove background.
When does LocalPix use WASM instead of WebGPU?
WebGPU is preferred when a GPU adapter is available. If there is no adapter, or WebGPU fails, the tool falls back to CPU/WASM so cutout can still run locally.
When is the ormbg model downloaded?
When you press Remove background, after a file is chosen, for an entitled session. Opening the page does not start it. Picking the file only keeps it in the tab. Licenses.
The page shows WebGPU in the browser, but the tool used WASM.
navigator.gpu can exist while requestAdapter() returns null. LocalPix treats a null adapter as no WebGPU and skips that init.
Is WASM the private mode?
No. Both backends keep the pixels in the tab. The network fetch is the weights and the runtime. WASM is what runs when the GPU path is missing or fails.
Will a smaller photo make WASM succeed?
Often, on a phone that ran out of memory. The model input is still scaled toward 1024×1024. Signed out, a download is up to 1024 px on the long side. A signed-in run after today’s 3 full-size credits is still 1024 px. The photo is not sent to a server to finish the job.
Sources
- WebGPU API on MDN —
requestAdapter(). A null adapter is not a usable GPU. - WebGPU specification — the adapter the cutout asks for before it tries a WebGPU session.
- WebAssembly on MDN — the fallback that still runs inside the tab.
- ONNX Runtime Web — WASM and WebGPU execution for the same ormbg graph.
- Transformers.js — the pipeline that loads that graph in the browser.
Related
Remove background · remove.bg alternative · remove.bg is shutting down · Capability · Verify local · ID photo background · Product cutout · Compress PNG for email