Tiện ích được biên dịch trước
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cách tải cwebp, dwebp và Thư viện WebP
cwebp
mã hoá hình ảnh ở định dạng JPEG, PNG hoặc TIFF thành WebP, trong khi dwebp
giải mã hình ảnh trở lại thành PNG. Để bắt đầu chuyển đổi hình ảnh một cách nhanh chóng và dễ dàng, bạn có thể sử dụng các tệp lưu trữ sau đây trong kho lưu trữ tải xuống.
Tất cả các kho lưu trữ này đều chứa bộ tiện ích đầy đủ, bao gồm cwebp
, dwebp
và gif2webp
, cùng với các thư viện WebP và tiêu đề C (thư viện sau cho phép bạn thêm tính năng mã hoá hoặc giải mã WebP vào các chương trình của riêng mình).
Lưu ý (đối với Linux và macOS):
Các tệp nhị phân đã được liên kết tĩnh để đảm bảo khả năng tương thích trên các bản phát hành và bản phân phối. Tuy nhiên, nếu các tệp nhị phân không chạy được trên nền tảng của bạn, hãy xem trang Biên dịch các tiện ích để biết hướng dẫn về cách tạo phiên bản của riêng bạn.
Trình quản lý gói macOS
Ngoài ra, các công cụ WebP thường có sẵn cho macOS thông qua Homebrew và MacPorts.
Tiếp theo là gì?
Hãy xem phần Sử dụng WebP để biết hướng dẫn về cách bắt đầu chuyển đổi hình ảnh.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-08 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-08 UTC."],[[["\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."]]