Browser
You are hereThis page. Encodes with your browser's canvas, no install.
- Lossless: no
- Metadata: cannot be preserved
- MCP: no
- Runtime: none
Tip: press B to pick a folder, Enter to convert.
PNG, JPEG, BMP, GIF, WebP , converts instantly.
Converting...
One signed binary: no runtime, no admin rights, no PATH edits. The installer
checks the SHA-256 from the release manifest before it writes anything.
curl -fsSLO https://github.com/aditya-xq/pictowebp/releases/download/rust-latest/install.sh
sh install.sh --json
pictowebp --info --json
{
"schema": "pictowebp.info/v1",
"name": "pictowebp",
"edition": "rust",
"version": "0.4.0",
"target": "x86_64-unknown-linux-musl",
"exe": "/home/you/.local/bin/pictowebp",
"capabilities": ["json", "info", "non_interactive", "interactive", "dry_run",
"out_dir", "single_file", "fail_on_error", "fail_on_empty",
"lossless", "keep_metadata", "mcp"]
}
Installs to ~/.local/bin without touching PATH. Add
--require-attestation if you have gh 2.49+ and want the Sigstore
attestation enforced.
irm https://github.com/aditya-xq/pictowebp/releases/download/rust-latest/install.ps1 -OutFile install.ps1
.\install.ps1 -Json
pictowebp --info --json
{
"schema": "pictowebp.info/v1",
"name": "pictowebp",
"edition": "rust",
"version": "0.4.0",
"target": "x86_64-windows",
"exe": "C:\\Users\\you\\AppData\\Local\\Programs\\pictowebp\\pictowebp.exe",
"capabilities": ["json", "info", "non_interactive", "interactive", "dry_run",
"out_dir", "single_file", "fail_on_error", "fail_on_empty",
"lossless", "keep_metadata", "mcp"]
}
Installs to %LOCALAPPDATA%\Programs\pictowebp and writes an
install.json manifest beside the binary. Use -RequireAttestation
with gh 2.49+ to enforce the Sigstore check.
Building from source, or running the Python edition's local server? See
CONTRIBUTING.md.
The Python package is not published on PyPI, so pip install pictowebp does not
exist yet.
The skill teaches a coding agent to detect the CLI, install it only if it is missing, and
convert with --json so nothing has to parse a human summary.
npx skills add https://xqbuilds.com/pictowebp/
--json object on stdout, human logs on stderr.0 ok, 2 bad path or arguments,
3 nothing converted, 4 failures with
--fail-on-error, 5 empty with
--fail-on-empty, 130 cancelled.--dry-run before a large batch, and --info --json to
detect capabilities instead of guessing a version.pictowebp --mcp serves info and convert over
stdio JSON-RPC..well-known/agent-skills/pictowebp/.{
"mcpServers": {
"pictowebp": {
"command": "pictowebp",
"args": ["--mcp"]
}
}
}
The installer does not edit PATH. If pictowebp is not resolvable,
use the absolute path it printed, or set PICTOWEBP_BIN.
Read next: llms.txt · llms-full.txt · the agent contract
Same conversion rules everywhere. What differs is metadata, lossless mode, and whether you need a runtime at all.
This page. Encodes with your browser's canvas, no install.
The signed binary. Fastest on large batches.
--mcpThis edition cannot preserve metadata: canvas decoding drops it before the encoder runs. Use the Rust CLI if you need EXIF or GPS kept.
This edition has no lossless mode. The Rust CLI does.
The same flags and exit codes in every edition. The normative contract is docs/agent-contract.md.
| Flag | Behaviour |
|---|---|
-q, --quality N | 1-100, default 80. |
-t, --threads N | Worker threads, default all cores. |
--out DIR | Output folder; must be missing or empty. |
--dry-run | Report what would happen, write nothing. |
--json | One object on stdout; implies --no-progress. |
--info | Print edition, version and capabilities, then exit. |
--lossless | Lossless WebP, larger files. |
--keep-metadata | Keep EXIF and GPS, stripped by default. |
--report PATH | Write a failure report inside the output folder. |
--max-pixels N | Decode cap, default 500000000. |
--fail-on-error | Exit 4 when anything fails. |
--fail-on-empty | Exit 5 when nothing is convertible. |
--mcp | Run a local stdio MCP server. Rust only. |
| Exit | Meaning |
|---|---|
0 | Success, including partial failures. |
1 | Unexpected internal error. |
2 | Invalid arguments, or an unusable source or output path. |
3 | Nothing converted; never returned by --dry-run. |
4 | A failure or collision with --fail-on-error. |
5 | No convertible images with --fail-on-empty. |
130 | Cancelled by the user. |