LocalPix runs a short list of open-source libraries inside the tab. This page says what each one does here, which license the upstream publishes, and which weights actually move across the network. The legal NOTICE, including the libheif source offer, stays on Licenses. This page does not replace that text.

ormbg

ormbg is the only background-removal model this site runs. The upstream project is schirrmacher/ormbg, Open Remove Background Model, Apache-2.0. The browser weights are the quantized ONNX on onnx-community/ormbg-ONNX. That model card lists apache-2.0, with schirrmacher/ormbg as the base card, also Apache-2.0. The file LocalPix fetches is ormbg/onnx/model_quantized.onnx, 44,315,205 bytes.

On Remove background the graph runs in the tab. An entitled session (a signed-out model download in this browser, a signed-in account, or Pro) gets those bytes with a GET to /api/models. Production does not auto-fetch the Hugging Face copy. The script only points at Hugging Face when the page URL contains ?debug_hf=1. The photo is not in either request. The model input is scaled toward 1024×1024. Signed out, a download is limited to a 1024 px long side. A signed-in run after today’s 3 full-size credits is limited to a 1024 px long side. The transparent PNG comes back as a blob: URL.

Transformers.js

@huggingface/transformers is the browser pipeline that builds an ONNX inference session for ormbg. Remove background imports the pinned ESM build @huggingface/transformers@4.2.0 from jsDelivr. The library’s own LICENSE is Apache-2.0, and the Transformers.js docs describe the in-browser pipeline. The script is code. It is not your photo, and a normal run does not POST the image to Hugging Face. The pipeline also keeps the model in the browser cache after the first entitled download, which is why a second cutout can show /api/models as a disk-cache hit.

ONNX Runtime Web

ONNX Runtime executes the graph. The project license on microsoft/onnxruntime is MIT. The ONNX Runtime Web docs cover the WASM and WebGPU backends that run in a page.

Two copies show up in DevTools, on purpose. Remove background receives ONNX Runtime through Transformers.js, from the jsDelivr module above, and uses WebGPU when requestAdapter() returns an adapter. Otherwise the same ormbg weights run on WASM. The watermark tool does not use that CDN copy. It imports the runtime pinned on this origin at /assets/ort/ort.min.mjs, with ort-wasm-simd-threaded.jsep.wasm (21,872,216 bytes). That pin is onnxruntime-web 1.22.0, checked by the repo’s vendor-integrity test. The watermark session sets numThreads to 1. There is no second, remote runtime if the local file fails. The page shows an error instead.

libheif, libheif-js, and libde265

HEIC decode on HEIC to JPG uses libheif-js 1.23.5, self-hosted. The binding is catdad-experiments/libheif-js, and the GitHub license tab for that repo is LGPL-3.0. It wraps strukturag/libheif (the tree this site tracks is v1.23.5). libheif’s COPYING says the library is under the GNU Lesser General Public License, version 3, and that the sample applications and the Go and C++ wrappers are MIT. HEVC stills go through strukturag/libde265. That COPYING uses the same split: the library under the LGPL, the samples under MIT.

What the browser actually fetches, and only after you start a HEIC convert, is /assets/libheif/libheif.js and /assets/libheif/libheif.wasm (1,463,506 bytes). JPEG, PNG, and WebP never load it. The wasm file is the object code. The source offer and the rebuild note live at libheif WASM source, linked from the NOTICE on Licenses. You can replace the shipped wasm with a compatible build. The photo is not uploaded while the wasm downloads.

MI-GAN

The painted-area fill on Remove watermark is MI-GAN from Picsart-AI-Research/MI-GAN. The repository LICENSE and LICENSE-WEIGHTS files are both the MIT license. The ONNX card at edgetools/migan also lists mit. The file this site serves is migan_pipeline_v2.onnx, 28,079,181 bytes, from /vendor/migan, cached at the Cloudflare edge. It is not bundled in the HTML. The script tries the Hugging Face resolve URL only when that same-origin file fails. ONNX Runtime for this tool is the self-hosted copy under /assets/ort/, described above.

The fill runs in the tab on the rectangle you paint. The long side of the working image is capped at 1280 px before the download, and the download is a PNG blob:. MI-GAN is not a second background remover, and it is not ormbg.

What is not in the stack

RMBG-1.4 and RMBG-2.0 are not loaded, not gated behind /api/models, and not a menu option. The NOTICE on Licenses says RMBG and BRIA weights must not be added. BiRefNet and BEN2 are not in this release either. The default cutout stays ormbg, Apache-2.0. A debug flag does not switch the cutout over to RMBG.

How it works

  1. The HTML ships the UI. It does not embed ormbg, libheif.wasm, or the MI-GAN ONNX.
  2. You pick a file. It stays in memory. Choosing it does not start the large download.
  3. Run or Convert fetches only the library that tool needs: ormbg plus Transformers.js, or libheif, or ONNX Runtime Web plus MI-GAN. Compress and a plain WebP or AVIF convert fetch none of these.
  4. Inference or decode runs in the tab, WebGPU when the cutout or the fill can create that session, WASM otherwise.
  5. The result is a blob: URL. Confirm the request list on Verify local.

Limits

FAQ

Is LocalPix’s own interface open source?

The original UI and glue are © 2026 LocalPix. Third-party pieces stay under the licenses named above. The NOTICE on Licenses is the text that states that split.

Why is RMBG missing if other cutout sites ship it?

This release does not use RMBG-1.4 or RMBG-2.0. They are not behind the model gate. The default is ormbg under Apache-2.0. BiRefNet and BEN2 are not selectable either.

Does Transformers.js send my photo to Hugging Face?

No. The jsDelivr request is the library. The weight request on a normal run is GET /api/models/ormbg/onnx/model_quantized.onnx. Hugging Face is the debug switch ?debug_hf=1, and even then the body is not the photo.

Which ONNX Runtime do I see for a cutout versus a watermark fill?

A cutout loads runtime code via Transformers.js from jsDelivr. A watermark fill loads /assets/ort/ from this origin and does not fall back to a CDN copy of the runtime. Both are ONNX Runtime Web, MIT. The model next to them is different: ormbg, or MI-GAN.

Where do I get the libheif source?

The offer is libheif WASM source, linked from Licenses. The files the browser loads are the js glue and the wasm under /assets/libheif/, on demand from HEIC to JPG.

Are the MI-GAN weights under a different license from the code?

The upstream LICENSE and LICENSE-WEIGHTS files are both MIT, and the edgetools/migan card lists mit. What your browser fetches on a successful run is /vendor/migan, 28,079,181 bytes, plus the runtime under /assets/ort/.

Sources