How it works

Every tool on this site is a web page plus browser code. The server sends HTML, JavaScript and model files; the browser does the actual image work. This page explains that pipeline concretely, including the parts that are compromises rather than magic.

The pipeline, step by step

  1. Read the file. You drop an image on the page and the browser's File API exposes it as a local handle. Nothing is sent anywhere — the drop handler never opens a network request with the image in it.
  2. Decode it. The browser decodes the JPEG, PNG, WebP, AVIF or PDF into pixels with createImageBitmap or an ImageDecoder. PDFs go through pdf.js, which rasterises pages into canvases the same way.
  3. Process the pixels. Geometric and colour work runs on Canvas 2D; effect passes run as fragment shaders on WebGL2 or WebGPU when a GPU is available, and fall back to CPU code when it is not. AI tools hand a tensor to a model instead.
  4. Encode and download. The result is encoded by a WebAssembly codec — JPEG, PNG, WebP, AVIF or PDF depending on the tool — wrapped in a Blob, and offered as a download through an object URL that the page revokes afterwards.

Where the AI models run

The on-device models are executed by ONNX Runtime Web, compiled to WebAssembly and shipped from this site's own origin (/onnx/). Image-to-image models — background removal, upscaling, denoising, deblurring, dehazing, deraining, low-light enhancement, retouching and colorisation — run through Transformers.js pipelines and UpscalerJS/MAXIM model weights. Face landmarks use MediaPipe's vision tasks. Everything executes inside the tab; there is no inference server and no API key.

Why the first run is slower

A model is a file of weights, not code that is already in the browser. The first time you use an AI tool it downloads the weights (a few megabytes) and keeps them in Cache Storage under a versioned name, so a later deploy that changes a model does not silently serve the old one. After that the tool starts from cache, which is also why it keeps working offline. The page asks the browser to make this storage persistent where the browser supports it, so the cache is not evicted under disk pressure.

What is stored on your device

StoreWhat goes in itWhen it goes away
Cache Storage (photoeditor-models) Model weights and their version tags, so models load once. When you clear site data, or when a new version replaces the entry.
IndexedDB (photoeditor-files) Images you have open in the editor, so a reload does not lose the workspace. When you delete them in the app or clear site data.
Service worker cache The app shell — HTML, CSS and JavaScript needed to start offline. When the service worker updates it, or you clear site data.

None of these stores are readable by this site's server, because none of their contents are ever sent to it.

Cross-origin isolation, honestly

Threaded WebAssembly needs a cross-origin isolated page. This site sends Cross-Origin-Opener-Policy: same-origin but deliberately Cross-Origin-Embedder-Policy: unsafe-none, with Cross-Origin-Resource-Policy: cross-origin, because strict embedding rules break the embedded support widget. The practical consequence is that the SIMD WebAssembly build runs single-threaded. Inference is therefore a little slower than a fully isolated page could make it, and that is a deliberate trade rather than an oversight.

What the server actually does

It serves the page, the JavaScript bundle, the WebAssembly binaries and the model files. It also renders the explanation you are reading as HTML, which is why an AI crawler that does not execute JavaScript can still read every tool page in full. There is no endpoint that accepts an image: a POST with a photo has nowhere to go.

Try it on a real tool

The clearest demonstration is the heaviest tool. Remove Background loads a segmentation model and runs it on your device; the JPEG compressor shows the plain Canvas-and-codec path with no model at all. Open DevTools → Network before you drop an image and watch that no request carries it.