เริ่มต้นใช้งาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ผู้ที่ชื่นชอบภาพควรใช้หนึ่งในผลิตภัณฑ์ซอฟต์แวร์จำนวนมากที่
รองรับ WebP
เรามีการติดตั้งใช้งานข้อมูลอ้างอิงสำหรับตัวแปลงรหัส libwebp
แอปพลิเคชันโปรแกรมเปลี่ยนไฟล์และตัวถอดรหัส cwebp
และ dwebp
ตามลำดับเพื่อ
แสดงฟังก์ชันการทำงานที่พร้อมใช้งานของ WebP ดาวน์โหลดไฟล์เหล่านี้ได้
จากที่เก็บการดาวน์โหลด
หรือสร้างขึ้นจากซอร์สได้ โดยอยู่ในไดเรกทอรี examples/
ตัวแปลงรหัส libwebp
มีโปรแกรมเปลี่ยนไฟล์และ API ตัวถอดรหัสที่ครอบคลุม โปรด
โปรดอ่านเอกสารที่เหมาะสมหากต้องการเพิ่มการสนับสนุน WebP
แอปพลิเคชันหรือเบราว์เซอร์ของคุณ
ใช้ cwebp
ในบรรทัดคำสั่งเพื่อแปลงไฟล์ภาพ PNG หรือ JPEG เป็น WebP
คุณแปลงไฟล์รูปภาพ PNG เป็นรูปภาพ WebP ที่มีช่วงคุณภาพได้
จาก 80 รายการด้วยคำสั่ง:
cwebp -q 80 image.png -o image.webp
ดูรายละเอียดในเอกสารประกอบของ cwebp
ตัวเลือกมาตรฐานและขั้นสูงของโปรแกรมเปลี่ยนไฟล์
ใช้ dwebp
ในบรรทัดคำสั่งเพื่อแปลงไฟล์ภาพ WebP เป็น PNG หรือ PPM
คุณแปลงไฟล์ภาพ WebP ได้ เช่น image.webp
เป็นรูปภาพ PNG
ด้วยคำสั่งต่อไปนี้
dwebp image.webp -o image.png
ดูรายละเอียดในเอกสารประกอบของ dwebp
ในตัวถอดรหัสและตัวเลือกบรรทัดคำสั่ง
การดูรูปภาพของคุณโดยตรง
WebP คือรูปแบบรูปภาพใหม่และได้รับการรองรับโดยค่าเริ่มต้นใน Google Chrome, Opera
และอื่นๆ อีกมากมาย
แอปพลิเคชันและไลบรารี
API สำหรับตัวแปลงรหัส WebP
ทีม WebP ได้มอบ API ที่ครอบคลุมเพื่อให้นักพัฒนาซอฟต์แวร์สามารถเพิ่ม
รองรับแอปพลิเคชัน รวมถึงเบราว์เซอร์ เครื่องมือแก้ไขรูปภาพ
เป็นแอปพลิเคชันที่มาพร้อมเครื่อง
อ่านเอกสารประกอบของ API เพื่อดูคำอธิบายของ
libwebp
Application Programming Interface
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-08 UTC
[[["เข้าใจง่าย","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 UTC"],[[["\u003cp\u003eWebP is a modern image format supported by various software and browsers like Google Chrome and Opera.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elibwebp\u003c/code\u003e codec provides tools like \u003ccode\u003ecwebp\u003c/code\u003e and \u003ccode\u003edwebp\u003c/code\u003e for encoding and decoding WebP images respectively.\u003c/p\u003e\n"],["\u003cp\u003eUsers can leverage command-line tools or the comprehensive API to integrate WebP functionality into their applications.\u003c/p\u003e\n"],["\u003cp\u003eDetailed documentation for the encoder, decoder, and API is available for developers to utilize.\u003c/p\u003e\n"]]],["Image conversion to and from WebP format is facilitated by `cwebp` (encoder) and `dwebp` (decoder) applications, available via download or source build. `cwebp` converts PNG or JPEG to WebP (e.g., `cwebp -q 80 image.png -o image.webp`), while `dwebp` converts WebP to PNG or PPM (e.g., `dwebp image.webp -o image.png`). Developers can integrate WebP support into applications using the provided `libwebp` API. WebP is natively supported by browsers like Chrome and Opera.\n"],null,["# Getting Started\n\nImage enthusiasts should use one of the many software products that\n[support WebP](https://wikipedia.org/wiki/WebP#Support).\n\n*** ** * ** ***\n\nWe provide in the `libwebp` codec distribution a reference implementation for\nthe encoder and decoder applications, `cwebp` and `dwebp` respectively, to\nshowcase the available functionalities of WebP. These files can be downloaded\nfrom the [downloads repository](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html)\nor can be built from source. They reside in the `examples/` directory.\n\nThe `libwebp` codec includes an extensive encoder and decoder API. Please\nconsult the appropriate documentation if you'd like to add support for WebP to\nyour application or browser.\n\nUsing `cwebp` to Convert Images to the WebP Format\n--------------------------------------------------\n\nUse `cwebp` on the command line to convert PNG or JPEG image files to WebP\nformat. You can convert a PNG image file to a WebP image with a quality range\nof 80 with the command: \n\n cwebp -q 80 image.png -o image.webp\n\nConsult the `cwebp` [documentation](/speed/webp/docs/cwebp) for a description\nof the encoder, its standard and advanced options.\n\nUsing `dwebp` to Convert Images from the WebP Format\n----------------------------------------------------\n\nUse `dwebp` on the command line to convert WebP image files to the PNG or PPM\nformat. You can convert a WebP image file, say `image.webp` to a PNG image\nwith the command: \n\n dwebp image.webp -o image.png\n\nConsult the `dwebp` [documentation](/speed/webp/docs/dwebp) for a description\nof the decoder and its command-line options.\n\nViewing your Images Natively\n----------------------------\n\nWebP is a new image format and is natively supported in Google Chrome, Opera,\nand [many other](/speed/webp/faq#which_web_browsers_natively_support_webp)\napplications and libraries.\n\nAPI for the WebP Codec\n----------------------\n\nThe WebP team has provided an extensive API to allow developers to add\nsupport to their applications, including browsers, image editing tools as well\nas native applications.\n\nConsult the [API documentation](/speed/webp/docs/api) for a description of\n`libwebp` application programming interface."]]