预编译实用程序
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
获取 cwebp、dwebp 和 WebP 库
cwebp
可将 JPEG、PNG 或 TIFF 格式的图片编码为 WebP,而 dwebp
可将它们解码回 PNG。如需快速轻松地开始转换图片,请访问下载代码库,其中提供了以下归档文件。
所有这些归档文件都包含完整的实用程序套件,包括 cwebp
、dwebp
和 gif2webp
,以及 WebP 库和 C 标头(后者允许您向自己的程序添加 WebP 编码或解码功能)。
注意(适用于 Linux 和 macOS):
这些二进制文件已进行静态链接,以确保在不同版本和分发渠道之间实现兼容。不过,如果二进制文件无法在您的平台上运行,请参阅编译实用程序页面,了解如何构建自己的版本。
macOS 软件包管理系统
此外,WebP 工具通常可通过 Homebrew 和 MacPorts 在 macOS 上使用。
接下来该怎么做?
如需了解如何开始转换图片,请参阅使用 WebP。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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,[]]