Beeldoptimalisatie die gewoon werkt. Overal.
Geen C++-bindingen. Geen native afhankelijkheden. Installeer en start — in je terminal, CI-pipeline of AI-agenttoolkit.
GetWebP CLI is een op WASM gebaseerde command-line image optimizer zonder dependencies die PNG, JPG, GIF, TIFF en BMP omzet naar WebP en AVIF. Ze draait volledig op je eigen machine, zonder cloud-uploads, native bindings of concessies aan privacy. Eén npx-commando installeert alles — klaar voor terminals, CI/CD-pipelines en tool-use door AI-agents.
Stop met vechten tegen native afhankelijkheden.
Nul C++-bindingen
Geen python, make of g++ nodig. Installeer met één npx-commando en draai overal waar Node.js draait.
Enkel binair / Puur WASM
~5 MB WASM-engine zonder native afhankelijkheden. Draait op Docker Alpine, CI-runners en serverless functies.
Voorspelbare JSON-uitvoer
Gebouwd voor pipelines en AI-agents. Gebruik --json voor gestructureerde resultaten perfect voor scripting en automatisering.
Gestructureerde uitvoer voor programmatisch gebruik
Schakel naar AI-modus met --json voor machineleesbare uitvoer. Elk bestand, zijn compressieverhouding, afmetingen en status — allemaal in een gestructureerde JSON-payload.
CLI-uitvoervoorbeelden: Human & AI-modus
# Activate Pro license
$ getwebp auth XXXX-XXXX-XXXX-ABCD
Verifying license...
✓ Activated! Pro plan unlocked.
# Convert a directory of images (Pro: recursive, concurrent)
$ getwebp ./images -o ./images/webp -q 85
✓ hero.jpg
✓ banner.png
✓ product-shot.jpg
Done: 3 succeeded, 0 failed
Avg saved: 34.2%
# Check current license status
$ getwebp status
Version : 1.0.1
Mode : Pro
License : xxxx-xxxx-xxxx-ABCD
Expires : 2026-12-31
Devices : 1 / 3 used# Activate Pro license
$ getwebp auth XXXX-XXXX-XXXX-ABCD
Verifying license...
✓ Activated! Pro plan unlocked.
# Convert a directory of images (Pro: recursive, concurrent)
$ getwebp ./images -o ./images/webp -q 85
✓ hero.jpg
✓ banner.png
✓ product-shot.jpg
Done: 3 succeeded, 0 failed
Avg saved: 34.2%
# Check current license status
$ getwebp status
Version : 1.0.1
Mode : Pro
License : xxxx-xxxx-xxxx-ABCD
Expires : 2026-12-31
Devices : 1 / 3 used// $ getwebp ./images -o ./images/webp -q 85 --json
// One JSON object per line (NDJSON). First line: version preamble.
{"@timestamp":"2026-04-12T10:00:00.000Z","@level":"info","@message":"GetWebP CLI 1.3.0","@module":"getwebp.cli","type":"version","data":{"getwebp":"1.3.0","ui":"1"}}
// Last line: convert.completed summary with all results.
{"@timestamp":"2026-04-12T10:00:01.234Z","@level":"info","@message":"Converted 3/3 files","@module":"getwebp.convert","type":"convert.completed","data":{
"processed": 3,
"successCount": 3,
"failedCount": 0,
"results": [
{
"file": "images/hero.jpg",
"outputPath": "/abs/images/webp/hero.webp",
"originalSize": 204800,
"newSize": 134144,
"savedRatio": 0.345,
"saved": "34.5%",
"quality": 82,
"qualityMode": "auto",
"status": "success"
},
{
"file": "images/banner.png",
"outputPath": "/abs/images/webp/banner.webp",
"originalSize": 512000,
"newSize": 327680,
"savedRatio": 0.36,
"saved": "36.0%",
"quality": 85,
"qualityMode": "auto",
"status": "success"
},
{
"file": "images/product-shot.jpg",
"outputPath": "/abs/images/webp/product-shot.webp",
"originalSize": 163840,
"newSize": 102400,
"savedRatio": 0.375,
"saved": "37.5%",
"quality": 80,
"qualityMode": "auto",
"status": "success"
}
]
}}Integreer het in je workflow
name: Optimize Images
on:
push:
paths:
- 'public/images/**'
jobs:
optimize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install getwebp CLI
run: npm install -g getwebp
- name: Convert images to WebP
run: |
getwebp ./public/images --json > report.ndjson
# Check for failures: extract convert.completed and assert failedCount == 0
grep '"convert.completed"' report.ndjson | jq -e '.data.failedCount == 0'
- name: Upload NDJSON report
uses: actions/upload-artifact@v4
with:
name: webp-report
path: report.ndjsonFree is prima voor ad-hoc. Pro is gebouwd voor pipelines.
| Functie | Gratis | Pro |
|---|---|---|
| Enkelvoudige mapconversie | ✓ | ✓ |
| Lossy/lossless controle | ✓ | ✓ |
| Onbeperkt recursief (-r) | — | ✓ |
| Multi-thread concurrentie | — | ✓ |
| Onbeperkte JSON-uitvoer (--json) | — | ✓ |
| Watch-modus (--watch) | — | ✓ |
Developer FAQ
Ja, volledig offline na installatie. De WASM-engine draait volledig op je machine. Licentievalidatie maakt één netwerkoproep bij activering, maar beeldconversie raakt nooit het internet.
Ja. Omdat het op puur WASM via Node.js draait, werkt het identiek op macOS (Intel + Apple Silicon), Linux (x64 + ARM64) en Windows (x64). Geen platformspecifieke binaries nodig.
Sharp is een fantastische bibliotheek maar vereist het compileren van native libvips-bindingen, wat mislukt in Alpine Docker en serverless omgevingen. getwebp gebruikt een puur WASM-engine — geen compilatie, geen gyp, geen native afhankelijkheden.
ImageMagick is een systeemtool die apart geïnstalleerd moet worden (apt-get, brew), varieert per OS-versie en heeft geen gestructureerde uitvoer. getwebp is een zelfstandig Node.js-pakket met consistent gedrag overal.
Ja. Een enkele Pro-licentie kan op maximaal 5 apparaten (CLI) worden geactiveerd en dekt tot 3 WordPress-sites. Meer nodig? Neem contact met ons op.
Related GetWebP tools
Every GetWebP product runs on the same WASM converter - pick the surface that fits your workflow.
MCP Server
Model Context Protocol server that gives Claude, Cursor, and Windsurf local image conversion.
For AI Agents
JSON-structured output, stdin/stdout I/O, exit codes - designed for autonomous agent tool-use.
WordPress Plugin
Convert your full media library to WebP and AVIF on your own server. No third-party API.