{
  "id": 15885262,
  "title": "Running OxiPNG, SVGO, rembg and FFmpeg in a browser tab: what actually worked",
  "url": "https://urgent.news/2026/10/21/running-oxipng-svgo-rembg-and-ffmpeg-in-a-browser-tab-what-actually",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-21T12:23:54.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/lucas2324343/running-oxipng-svgo-rembg-and-ffmpeg-in-a-browser-tab-what-actually-worked-2ig6"
  },
  "original_language": "en",
  "account": "Running OxiPNG, SVGO, rembg and FFmpeg in a browser: what actually worked\n\nOptimizing image formats like PNG, SVG, and video files used to require installing command-line tools like OxiPNG, SVGO, rembg, and FFmpeg. However, a developer built a small site with browser-based tools that perform the same functions. Here's how it works.\n\nOxiPNG, a PNG optimizer written in Rust, is compiled to WebAssembly and self-hosted on the site. The process is simple: read the file into an ArrayBuffer, call optimise(data, level), and compare sizes. If the optimized file isn't smaller, the original is kept. Levels above 4 are not recommended due to slow processing times in the browser.\n\nSVGO, an SVG minifier, is run with preset-default and multipass options. Users can adjust the precision. Note that removing the viewBox is now an opt-in feature with a warning. The preview shows the SVG without whitespace, but the downloaded file is the original SVG minus whitespace.\n\nrembg, a Python tool that uses U²-Net models for background removal, is integrated using ONNX Runtime Web. The small model is bundled with the site, while the larger model is downloaded on-demand from Hugging Face. The sensitivity slider adjusts the mask, not the alpha matting of rembg.\n\nFFmpeg, a powerful video processing tool, runs in the browser using FFmpeg.wasm. The site starts with a stream copy to mute a video, taking only a few moments even in WebAssembly. If the copy fails, it re-encodes the video with x264. The tool is single-threaded and works well for short videos but struggles with larger files.\n\nThe pages include the engine name, version, license, command, and differences from the original tool. This transparency builds trust and aids developers who might eventually use these tools in scripts. The site is available at onemilliontools.com, and the source code is free to use.",
  "summary": "A lot of the best file tools are command-line programs. OxiPNG shrinks PNGs losslessly, SVGO minifies SVGs, rembg removes image backgrounds, and FFmpeg does everything to video. They're excellent, but each one asks you to install Rust, Node, Python or a native binary first. That's fine on your own machine, and annoying on a locked-down work laptop, a Chromebook, or when you just need to do one…",
  "key_points": [
    "OxiPNG optimized in WebAssembly, self-hosted on site",
    "SVGO minifies SVG with preset-default and multipass",
    "FFmpeg.wasm runs FFmpeg in browser for video processing"
  ],
  "editors_take": "Porting complex command-line utilities to WebAssembly eliminates the need for local installations, allowing developers to perform heavy media optimization and background removal directly within a standard web browser.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}