Guide · ID photo

Remove the background for an ID or passport photo

Many application portals want a plain backdrop, not a living-room wall. Cut the portrait out locally, then place it on white or keep it transparent — your photo is not uploaded to LocalPix.

Use this when the form asks for a head-and-shoulders photo on a plain background and you do not want to send the original to a cutout website. LocalPix Remove background runs ormbg (Apache-2.0) in the tab and downloads a transparent PNG. Passport photo is only a route placeholder in this MVP — it does not crop to a country’s millimetre spec. Do the cutout now; measure and crop to the printed size the form actually names.

When to open which page

White background vs transparent PNG

Steps (local, 0-byte upload)

  1. Read the form before you edit: backdrop color, JPG or PNG, pixel size, and the KB cap. Passport photo does not crop to those numbers.
  2. If the camera file is HEIC, convert it on HEIC to JPG first. Remove background accepts PNG, JPEG, and WebP only.
  3. Open Remove background. Choosing the portrait does not download the model. Read the WebGPU or WASM line under the button, then press Remove background. An entitled session fetches ormbg q8 (44,315,205 bytes) through /api/models. The portrait is not in that request. Signed out, the file is up to 1024 px on the long side, 3 a day. A signed-in run after today’s 3 full-size credits is 1024 px on the long side.
  4. Download the PNG. The name ends in -nobg.png. It is transparent. Zoom hair and glasses at 100%. This site does not paint white, cream, or grey.
  5. Composite the color the form named, then crop to the pixel size it printed. If the flattened file must meet a KB cap, open Compress to KB and type that number. That step writes compressed.jpg and drops the alpha.

How it works

An ID portal usually asks for three separate things: a plain backdrop, a head-and-shoulders crop, and a file type plus a size cap. Remove background only does the first half of the first one. It runs ormbg, Apache-2.0, and downloads a transparent PNG. It does not paint white, off-white, or grey. It does not measure head height. Passport photo is still a stub and does not crop to a country’s millimetres. You composite the color the form named, then crop to the pixel size that form printed.

Drop a JPEG, PNG, or WebP. When you press Remove background, an entitled session fetches ormbg q8, 44,315,205 bytes, through /api/models. Transformers.js loads from jsDelivr. The portrait is not in that request. The model input is scaled toward 1024×1024, so crop to the head and shoulders before you run it. A full-body frame makes a soft face. WebGPU runs only when requestAdapter() returns an adapter. Otherwise the same weights run on WASM. The download is a blob: PNG. Signed out, the long side is up to 1024 px, 3 a day in this browser. A signed-in run after today’s 3 full-size credits limits the long side to 1024 px. Those 3 reset at 00:00 UTC. A 1024 px PNG is a reasonable way to see a halo around hair. It is the wrong file to submit when the portal will print the portrait or names a larger pixel size. Use the HD credit for the submission file.

After the PNG looks clean, composite it onto the named color in your own editor. “Light” is not always pure white. Read the form. Export the JPEG or PNG the portal lists. Only then, if that flattened file is over the cap, open Compress to KB. Compress writes a JPEG, drops alpha, and does not change width or height. Ten probes run between quality 0.10 and 0.95. Type the portal’s number in kilobytes. 200 KB is 200. About 1 MB is 1000. The field stops at 5000. HEIC from the phone never enters the cutout. HEIC to JPG first. This sequence does not certify ICAO, visa, or school rules. Reject a fringe rather than submitting it.

Limits

FAQ

Does my ID photo leave the device?

No. Processing runs in your browser with ormbg. Your image bytes are not uploaded to LocalPix servers. Prove it with Verify local or the homepage section How to self-prove 0-byte upload.

White or transparent?

The tool outputs a transparent PNG. Composite onto the colour the form names — often white — before you upload to a portal that rejects alpha.

Will passport-photo crop it to the official size?

Not yet. Passport photo is a placeholder. Crop to the pixel size printed on the form after the cutout.

The free download is 1024 px. Can I submit that?

Only if the form accepts that size. A signed-in run after today’s 3 full-size credits is 1024 px. Signed out, the cap is 1024 px on the long side, 3 a day in this browser. Sign in for 3 full-size PNGs a day, resetting at 00:00 UTC. The download name ends in -nobg.png. The 1024 px file is still transparent, and it is often too small to print.

Who paints the white?

You do, in a local editor, onto the color the form names. The tool’s download is a transparent PNG. Compress to KB after that flatten if a KB cap still applies.

Does a WASM fallback change the ID rules?

No. WebGPU and WASM run the same ormbg weights. Neither one crops to a passport size or paints a backdrop. Capability shows which backend this browser will use.

Sources

Related

Remove background · Passport photo · Verify local · 0-byte upload proof · Product photo cutout · When WASM runs

Related guides