Optimasi Gambar yang Langsung Berfungsi. Di Mana Saja.
Tanpa binding C++. Tanpa dependensi native. Cukup instal dan jalankan — di terminal, pipeline CI, atau kotak alat agen AI Anda.
GetWebP CLI adalah pengoptimal gambar command-line tanpa dependensi bertenaga WASM yang mengonversi PNG, JPG, GIF, TIFF, dan BMP ke WebP serta AVIF. Ia berjalan sepenuhnya di mesin Anda tanpa unggahan cloud, tanpa native binding, dan tanpa kompromi privasi. Satu perintah npx memasang semuanya — siap untuk terminal, pipeline CI/CD, dan tool-use AI agent.
Berhenti Berjuang dengan Dependensi Native.
Nol Binding C++
Tidak perlu python, make, atau g++. Instal dengan satu perintah npx dan jalankan di mana pun Node.js berjalan.
Biner Tunggal / WASM Murni
Mesin WASM ~5 MB tanpa dependensi native. Berjalan di Docker Alpine, runner CI, dan fungsi serverless.
Output JSON yang Dapat Diprediksi
Dibangun untuk pipeline dan agen AI. Gunakan --json untuk mendapatkan hasil terstruktur yang sempurna untuk skrip dan otomatisasi.
Output Terstruktur untuk Penggunaan Programatik
Beralih ke Mode AI dengan --json dan dapatkan output yang dapat dibaca mesin. Setiap file, rasio kompresi, dimensi, dan status — semuanya dalam payload JSON terstruktur.
Contoh Output CLI: Mode Human & AI
# 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"
}
]
}}Integrasikan ke Alur Kerja Anda
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 cocok untuk ad-hoc. Pro dibuat untuk pipeline.
| Fitur | Gratis | Pro |
|---|---|---|
| Konversi direktori tunggal | ✓ | ✓ |
| Kontrol lossy/lossless | ✓ | ✓ |
| Rekursif tak terbatas (-r) | — | ✓ |
| Konkurensi multi-thread | — | ✓ |
| Output JSON tak terbatas (--json) | — | ✓ |
| Mode watch (--watch) | — | ✓ |
FAQ Developer
Ya, sepenuhnya offline setelah instalasi. Mesin WASM berjalan sepenuhnya di mesin Anda. Validasi lisensi membuat satu panggilan jaringan saat aktivasi, tetapi konversi gambar tidak pernah menyentuh internet.
Ya. Karena berjalan di WASM murni melalui Node.js, ia bekerja sama di macOS (Intel + Apple Silicon), Linux (x64 + ARM64), dan Windows (x64). Tidak diperlukan biner khusus platform.
Sharp adalah pustaka yang fantastis tetapi memerlukan kompilasi binding libvips native, yang gagal di Docker Alpine dan lingkungan serverless. getwebp menggunakan mesin WASM murni — tanpa kompilasi, tanpa gyp, tanpa dependensi native.
ImageMagick adalah alat tingkat sistem yang harus diinstal secara terpisah (apt-get, brew), bervariasi berdasarkan versi OS, dan tidak memiliki output terstruktur. getwebp adalah paket Node.js mandiri dengan perilaku konsisten di mana saja.
Ya. Satu lisensi Pro dapat diaktifkan hingga 5 perangkat (CLI) dan mencakup hingga 3 situs WordPress. Butuh lebih? Hubungi kami.
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.