先行編譯的公用程式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
取得 cwebp、dwebp 和 WebP 程式庫
cwebp
會將 JPEG、PNG 或 TIFF 格式的圖片編碼為 WebP,而 dwebp
則會將圖片解碼回 PNG。如要快速輕鬆地開始轉換圖片,請前往下載存放區下載下列封存檔。
所有這些封存檔都包含完整的公用程式套件,包括 cwebp
、
dwebp
和 gif2webp
,以及 WebP 程式庫和 C 標頭 (後者可讓您在自己的程式中新增 WebP 編碼或解碼)。
注意 (適用於 Linux 和 macOS):
二進位檔已靜態連結,可跨版本和發布項目相容。不過,如果二進位檔無法在您的平台上執行,請參閱「編譯公用程式」頁面,瞭解如何建構自己的版本。
macOS 套件管理工具
此外,macOS 通常會透過 Homebrew
和 MacPorts 提供 WebP 工具。
後續步驟
如要瞭解如何開始轉換圖片,請參閱「使用 WebP」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-08 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-08 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003ecwebp\u003c/code\u003e utility encodes JPEG, PNG, or TIFF images into WebP format, while \u003ccode\u003edwebp\u003c/code\u003e decodes WebP images back to PNG.\u003c/p\u003e\n"],["\u003cp\u003ePre-built, downloadable archives containing \u003ccode\u003ecwebp\u003c/code\u003e, \u003ccode\u003edwebp\u003c/code\u003e, and other WebP utilities are available for Windows, Linux, and macOS platforms.\u003c/p\u003e\n"],["\u003cp\u003eThe provided archives include the WebP libraries and C headers for integrating WebP functionality into custom applications.\u003c/p\u003e\n"],["\u003cp\u003emacOS users can install WebP tools using package managers like Homebrew and MacPorts.\u003c/p\u003e\n"],["\u003cp\u003eDetailed usage instructions for WebP tools are available on the "Using WebP" documentation page.\u003c/p\u003e\n"]]],["`cwebp` encodes JPEG, PNG, or TIFF images to WebP, and `dwebp` decodes them to PNG. Pre-compiled 64-bit executables and libraries for Windows, Linux, and macOS are available for download. These archives include `cwebp`, `dwebp`, `gif2webp`, WebP libraries, and C headers. macOS users can also get the tools through Homebrew or MacPorts. If the provided binaries fail, users can build custom versions.\n"],null,[]]