Utilities
Convert a PNG to lossless WebP
webp-encode is a lossless PNG-to-WebP encoding node powered by cwebp.
overview
What webp-encode does
Encode one 8-bit RGB or RGBA PNG with native cwebp. The result is a lossless WebP image, preserving pixels rather than the PNG encoding. Source bytes remain unchanged. Resizing and metadata copying are outside this operation.
8-bit RGB/RGBA PNG to native lossless WebP only; 16 MiB, 4096x4096, 60 seconds, 512 MiB address space; exact pixel roundtrip checks
Input or native processing failures fail the operation. The operation keeps the supplied source unchanged.
This operation uses 1.2.4-deb12u1. Upstream license: BSD-3-Clause. The source link identifies the program used by this node.
use cases
Where webp-encode fits
Create lossless web images
Convert supplied PNG pixels to a VP8L WebP artifact.
Preserve transparent pixels
Encode RGBA PNG input without choosing a lossy quality setting.
Keep conversion reproducible
Keep the supplied PNG and review the returned WebP separately.
reference
webp-encode inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| image | FILE | --image | 8-bit RGB/RGBA PNG, up to 16 MiB and 4096x4096 pixels. Native lossless encoding, 60 seconds, 512 MiB address space, 32 MiB output. No resizing or metadata copy; symlinks refused. |
Showing key inputs. webp-encode exposes 1 inputs in total.
example
Run webp-encode
python3 /app/run.py --image ./input.txt ./outputguidance
Choosing webp-encode
Choose this node for a fixed lossless PNG-to-WebP conversion. ImageMagick offers broader image processing; JPEG optimization is a separate operation.
imagemagick
Provides general image conversion; this node exposes only lossless PNG-to-WebP encoding.
faq
webp-encode questions
related
More Utilities tools
browser-fetch
Headless Chromium render: requested URL, final URL, status, and title next to the page.
cewl
Spider a URL and return a wordlist for password crackers.
csvkit
SQL on one CSV. The table name is the file stem.
dnsgen
Wordlist and mined-word subdomain permutation.
duckdb
In-process SQL on CSV, JSON, and Parquet. No server.
edge-tts
Microsoft Edge neural speech from text or a script file. No API key.
Run webp-encode yourself
The synthetic run checks lossless webp. The saved verifier records the result; this text page does not reproduce the native artifact. The command shown is the container entrypoint with example paths, not a host-installed CLI command.
Facts on this page come from the live Trickest tool library.