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
- Remove background — the working tool. Pick a JPEG, PNG, or WebP portrait. Output is a transparent PNG. RMBG is not used.
- Passport photo — coming later for spec-accurate sizing. Open it only to confirm it is still a stub, then return to Remove background.
- iPhone HEIC — many camera rolls are HEIC. Convert with HEIC to JPG first if the cutout tool cannot decode the file. See iPhone HEIC to JPG for email and forms.
White background vs transparent PNG
- Transparent — keep the PNG when you will place the portrait yourself, or when a designer asked for a cutout. Check hair and glasses edges at 100% before you submit.
- White (or the colour the form names) — most passport, visa, and school ID uploads want a flat light backdrop, not a checkerboard. The tool does not paint that backdrop for you. Composite the PNG onto white in any local editor, then export the JPEG or PNG the portal lists.
- Do not guess the colour. “Light” is not always pure white. Read the form. A grey or off-white requirement will fail a pure-white JPEG.
- JPEG flattens alpha. If you run the cutout through Compress to KB, you leave PNG and lose transparency. Compress only after the backdrop is already correct.
Steps (local, 0-byte upload)
- 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.
- If the camera file is HEIC, convert it on HEIC to JPG first. Remove background accepts PNG, JPEG, and WebP only.
- 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. - 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. - 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.jpgand 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
- The model resizes large images toward 1024×1024 for inference. A tiny, blurry source will not become a sharp ID photo.
- Busy hair, veils, and glasses can leave fringe. Reject the result rather than submitting a halo.
- This is not a compliance check. LocalPix does not certify ICAO, visa, or school rules.
- Signed out, a download is up to 1024 px on the long side, 3 a day. A signed-in run after today’s 3 HD credits is 1024 px. Print-sized submissions need an HD credit: 3 full-size PNGs a day on a free account, resetting at 00:00 UTC, or Pro.
- HEIC is refused. HEIC to JPG first. Compress to KB is only for the flattened file, and it does not change width or height.
- WebGPU and WASM run the same ormbg weights. Neither backend paints the backdrop or crops to a national size.
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
- onnx-community/ormbg-ONNX — the cutout weights. Served from
/api/modelsfor an entitled session. - Apache License 2.0 — the license on ormbg. RMBG is not used for ID photos either.
- PNG specification — the transparent file you composite onto the color the form actually named.
- JPEG on jpeg.org — the usual portal file after you flatten, and the format Compress to KB writes.
Related
Remove background · Passport photo · Verify local · 0-byte upload proof · Product photo cutout · When WASM runs