预编译实用程序
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
获取 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,["Getting cwebp, dwebp, and the WebP Libraries\n\n`cwebp` encodes images in either JPEG, PNG or TIFF format into WebP, while\n`dwebp` decodes them back into PNG. For a quick and easy way to get started\nconverting your images, the following archives are available on the\n[downloads repository](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html).\n\n- [libwebp-1.5.0-windows-x64.zip](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-windows-x64.zip) :\n 64-bit executables and libraries for Windows-x64 platform.\n\n- [libwebp-1.5.0-linux-aarch64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-linux-aarch64.tar.gz) :\n 64-bit executables and libraries for GNU/Linux-AArch64 platform.\n\n- [libwebp-1.5.0-linux-x86-64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-linux-x86-64.tar.gz) :\n 64-bit executables and libraries for GNU/Linux-x86_64 platform.\n\n- [libwebp-1.5.0-mac-arm64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-mac-arm64.tar.gz) :\n 64-bit executables and libraries for macOS (arm64) platform.\n\n- [libwebp-1.5.0-mac-x86-64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-mac-x86-64.tar.gz) :\n 64-bit executables and libraries for macOS (x86_64) platform.\n\nAll these archives contain the full suite of utilities including `cwebp`,\n`dwebp` and `gif2webp`, along with the WebP libraries and C headers (the\nlatter allowing you to add WebP encoding or decoding to your own programs).\n\nNote (for Linux and macOS):\n\nThe binaries have been statically linked for compatibility across releases and\ndistributions. However, if the binaries fail to run on your platform, check the\n[Compiling the Utilities page](/speed/webp/docs/compiling#unix) for instructions\non how to build your own versions.\n\nmacOS Package Managers\n\nAdditionally, the WebP tools are often available for macOS via **[Homebrew](https://brew.sh/)**\nand **[MacPorts](https://www.macports.org/)**.\n\n- [Homebrew WebP package](https://formulae.brew.sh/formula/webp)\n- [Macports WebP package](https://www.macports.org/ports.php?by=library&substr=webp)\n\nWhat Next?\n\nGo to [Using WebP](/speed/webp/docs/using) for instructions on how to start\nconverting your images."]]