Issuing authorities publish their own photo rules, and those rules disagree with each other. LocalPix does not store a country’s millimetre spec, and it does not submit a file to any passport office. The practical path today is to read the page for the document you are filing, then use Remove background only when that document asks you to replace a busy backdrop and you accept an edited file. The walkthrough for the cutout itself is ID and passport photo background. Pixels stay in the tab. Verify local · 0-byte upload proof.
What passport and visa photos usually require
A typical rule set covers four separate things: when the picture was taken, how large the head is inside the frame, what sits behind the person, and whether software has already changed the pixels. LocalPix applies none of those checks. The numbers below are quoted from public UK guidance so you can see the shape of a real rule. Another country prints different numbers. Copy the figures off the form in front of you.
For a UK passport, GOV.UK’s digital photo guidance says you need a new photo taken in the last month, even when your appearance has not changed. The digital file must be clear, in focus, and in colour. It must be at least 600 pixels wide and 750 pixels tall, and at least 50KB and no more than 10MB. It must show no other objects or people, sit on a plain light-coloured background with clear contrast, and have no red-eye. On a photo you take yourself, the page says to include your head, shoulders, and upper body, and not to crop: the application crops for you. You face the camera with a plain expression and closed mouth, eyes open and visible, no hair in front of the eyes, nothing covering the face, and no shadows on the face or behind you. Glasses only if you have to wear them, and not sunglasses or tinted lenses. Eyes must stay clear of the frames and of glare, reflection, or shadow. The same page says the photo must be unaltered by computer software.
The printed-photo page is a different object. A paper application wants two identical prints, 45 millimetres high by 35 millimetres wide, not cut down from a larger picture. From the crown of the head to the chin, the image of you must be between 29mm and 34mm high. Prints are on plain white photographic paper with no border. The background named there is plain cream or light grey. Pose, glasses, and the “unaltered by computer software” line match the digital page. A booth outside the UK is told to check that it can actually produce 45mm by 35mm.
Those two UK pages are examples, not a LocalPix preset. This site has no control that outputs 600×750, 45×35 mm, or a 29–34 mm head. It also has no U.S. size built in. Treat every other authority the same way: open their current photo page and use the figures printed there.
What you can do on this site today
The interim workflow is a cutout plus work you finish yourself. Remove background runs ormbg in the tab and downloads a transparent PNG. It does not paint white, cream, or grey, and it does not measure the head. The guide ID and passport photo background is that cutout, written for a portrait. If the original is HEIC from a phone, convert it on HEIC to JPG first. Remove background does not decode HEIC.
After the PNG, composite the plate in a local editor when the form names a flat colour. Then crop and scale to the size that form printed. If it also names a JPEG and a file-size cap, run Compress to KB only after the plate is already in the pixels. JPEG has no alpha channel, so compressing the transparent PNG throws the cutout away. A form that simply says “under N KB” is a different job, covered in JPG under a form cap.
Read the alteration rule before you start. The UK digital and printed pages both say the photo must be unaltered by computer software. A background removal is an alteration. A file you cut out here can fail that sentence even when the head happens to look centred. Use the cutout when the document you are filing asks for a replaced background. Do not treat the PNG as a finished UK passport photo.
How it works
- Open the photo rules for the document you are filing. Write down the background, the head size, the pixel or print size, the file type, and whether software edits are allowed. This page does not store those numbers.
- If the camera roll file is HEIC, open HEIC to JPG and press Convert to JPG. libheif (1,463,506 bytes) loads on that press. Quality starts at 92.
- Open Remove background and choose the portrait. Press Remove background. Choosing the file does not download the model. An entitled session then fetches ormbg q8 (44,315,205 bytes) through
/api/models. The portrait is not in that request. The download name ends in-nobg.png. - Composite the colour the form named in your own editor. This site does not paint white, cream, or grey.
- Crop and scale outside this site, to the size printed on the form. Passport photo has no crop control.
- If the portal wants a JPEG under a stated KB cap, flatten first, then open Compress to KB and type that cap. The download is
compressed.jpg. Check the size on disk. The last of ten probes can sit a little over the number.
Signed out, a removal is limited to a 1024 px long side, 3 a day in this browser, resetting at 00:00 UTC. A signed-in run after today’s 3 full-size credits is also limited to a 1024 px long side. Those 3 credits reset at 00:00 UTC. A 1024 px long side can meet a 750-pixel height rule when the photo is tall enough (for example a portrait), but a landscape file at that cap can still fall short. Use an HD credit when you need the full-size PNG, then still measure it yourself. WebGPU runs only when requestAdapter() returns an adapter. Otherwise the same weights run on WASM. Neither backend crops to a passport size.
Limits
- Not a government-approved sizer. There is no official crop, no head-height measurement, and no submission to a passport or visa office. Coming soon means that tool is absent from this MVP.
- Rules that forbid software edits. The UK pages cited above say the photo must be unaltered by computer software, and the digital page tells you not to crop a self-taken photo. A cutout can fail those lines.
- Edge cases the model does not judge. Hair across the eyes, glasses glare, a shadow behind the shoulder, a baby’s supporting hand, and a second person at the edge are compliance problems. ormbg is a cutout. It will not flag them. Fine hair and glasses frames can also fringe. Check the PNG at 100%.
- Transparency versus a white or cream plate. The preview checkerboard is alpha. Many portals want a flat light background. You composite it. Uploading the transparent PNG can show up as black or a checkerboard on their side.
- The 1024 px cap can still fall short of a published minimum such as the UK digital 600 by 750 when the photo is landscape. Signed-out runs and signed-in runs after the free HD credits use the same 1024 px long-side cap, and still need you to crop. Full size still needs you to crop.
- The portrait stays in the tab. Model and WASM downloads are not the photo. Confirm the request list on Verify local.
FAQ
Is passport sizing available in this version?
No. This route is a placeholder. It does not crop, resize to a national spec, or export a print sheet. The banner at the top is the product state.
Does this page crop to the UK 45 by 35 mm print, or to 600 by 750 pixels?
No. Those figures are on the GOV.UK pages linked below. LocalPix does not output them. You measure and crop outside this site, to whatever the form you are filing prints.
A passport office says the photo must be unaltered by software. Does removing the background still qualify?
A cutout is an alteration. The UK digital and printed guidance both require a photo unaltered by computer software. Do not send a LocalPix PNG as a UK passport photo that meets that sentence. Use the cutout only when the document you are filing asks for a replaced background.
Why is the result transparent instead of white or cream?
Remove background writes a transparent PNG. The name ends in -nobg.png. It does not paint the plate. Composite white, cream, or light grey yourself when the form names one of those, then export the file type the portal listed.
Does the portrait get uploaded while I cut the background out?
No. Inference runs in the tab. When you press Remove background, an entitled session fetches ormbg through /api/models. That response is the model, 44,315,205 bytes, not your photo. The PNG downloads from a blob: URL and the name ends in -nobg.png. Verify local.
The free download is capped at 1024 px on the long side. The UK digital rule asks for at least 750 pixels tall. What should I do?
Measure the height before you submit. A signed-in run after today’s 3 full-size credits, and a signed-out run, are both capped at a 1024 px long side. A portrait at that cap can meet a 750 px height rule; a landscape file can still fall short. An HD credit keeps the full-size PNG. You still crop it yourself, and a cutout can still fail an “unaltered” rule. The 3 free HD removals reset at 00:00 UTC.
Sources
- Get a passport photo: digital photos (GOV.UK) — UK digital rules checked for this page: last month, unaltered by computer software, at least 600×750 pixels, 50KB to 10MB, plain light-coloured background, and the pose lines summarised above. LocalPix does not apply these numbers.
- Get a passport photo: printed photos (GOV.UK) — UK print size 45mm high by 35mm wide, crown-to-chin between 29mm and 34mm, plain cream or light grey background, plain white paper, unaltered by computer software.
Rules from other governments are not repeated here unless the page was fetched successfully while this copy was written. Open the photo instructions for the document you are filing and follow those.