Dwebp
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ชื่อ
dwebp
-- ขยายไฟล์ WebP ไปยังไฟล์ภาพ
เรื่องย่อ
dwebp [options] input_file.webp
คำอธิบาย
dwebp
จะขยายไฟล์ WebP เป็นรูปภาพ PNG, PAM, PPM หรือ PGM
หมายเหตุ: ระบบไม่รองรับไฟล์ WebP ที่เป็นภาพเคลื่อนไหว
ตัวเลือก
ตัวเลือกเบื้องต้นมีดังนี้
-h
- พิมพ์สรุปการใช้งาน
-version
- พิมพ์หมายเลขเวอร์ชัน (เป็น main.minor.revision) แล้วออก
-o string
- ระบุชื่อไฟล์เอาต์พุต (เป็นรูปแบบ PNG โดยค่าเริ่มต้น) กำลังใช้ "-"
เป็นชื่อเอาต์พุตจะส่งเอาต์พุตไปที่ "stdout" โดยตรง
-- string
- ระบุไฟล์อินพุตอย่างชัดเจน ตัวเลือกนี้จะมีประโยชน์หากอินพุต
ไฟล์ขึ้นต้นด้วย '-' เป็นต้น ตัวเลือกนี้ต้องปรากฏใน
last
โดยระบบจะไม่สนใจตัวเลือกอื่นๆ ในภายหลัง หากไฟล์อินพุตคือ "-"
ระบบจะอ่านข้อมูลจาก stdin แทนไฟล์
-bmp
- เปลี่ยนรูปแบบเอาต์พุตเป็น BMP ที่ไม่มีการบีบอัด
-tiff
- เปลี่ยนรูปแบบเอาต์พุตเป็น TIFF ที่ไม่มีการบีบอัด
-pam
- เปลี่ยนรูปแบบเอาต์พุตเป็น PAM (เก็บอัลฟ่าไว้)
-ppm
- เปลี่ยนรูปแบบเอาต์พุตเป็น PPM (ยกเลิกอัลฟ่า)
-pgm
- เปลี่ยนรูปแบบเอาต์พุตเป็น PGM เอาต์พุตประกอบด้วย luma/chroma
ตัวอย่างแทน RGB โดยใช้รูปแบบ IMC4 ตัวเลือกนี้ใช้สำหรับ
เพื่อการยืนยันและการแก้ไขข้อบกพร่อง
-yuv
- เปลี่ยนรูปแบบเอาต์พุตเป็น YUV แบบข้อมูลดิบ เอาต์พุตจะประกอบด้วย
ตัวอย่าง luma/chroma-U/chroma-V แทน RGB ได้รับการบันทึกตามลำดับเป็น
เครื่องบินส่วนตัว ตัวเลือกนี้ใช้สำหรับการยืนยันและการแก้ไขข้อบกพร่องเป็นหลัก
วัตถุประสงค์
-nofancy
- อย่าใช้เครื่องหรูราคาแพงสำหรับ YUV420 อาจทำให้ขอบหยัก
(โดยเฉพาะรูปสีแดง) แต่ควรจะเร็วกว่านั้น
-nofilter
- อย่าใช้กระบวนการกรองแบบวนซ้ำ แม้ว่า
บิตสตรีม ซึ่งอาจทำให้เกิดการบล็อกที่มองเห็นได้ในเอาต์พุตที่ไม่เป็นไปตามข้อกำหนด
แต่จะทำให้ถอดรหัสได้เร็วขึ้น
-dither strength
- ระบุความแรงของระยะห่างระหว่าง 0 ถึง 100 การหมุนรอบตัวเองคือ
เอฟเฟกต์หลังการประมวลผลที่ใช้กับองค์ประกอบโครมาในการบีบอัดแบบสูญเสียบางส่วน
ซึ่งจะช่วยปรับการไล่ระดับสีให้เรียบเนียนและหลีกเลี่ยงไม่ให้มีสีจางๆ
-nodither
- ปิดการเชื่อมต่ออินเทอร์เน็ตผ่านมือถือทั้งหมด (ค่าเริ่มต้น)
-mt
- หากเป็นไปได้ ให้ใช้การจัดชุดข้อความหลายรายการในการถอดรหัส
-crop x_position y_position width height
- ครอบตัดภาพที่ถอดรหัสเป็นสี่เหลี่ยมผืนผ้าโดยมุมซ้ายบนของ
พิกัด (
x_position
, y_position
) และขนาด width
x height
ช่วงเวลานี้
พื้นที่ครอบตัดต้องอยู่ในรูปสี่เหลี่ยมผืนผ้าต้นฉบับอย่างสมบูรณ์
มุมซ้ายบนจะถูกจัดให้พอดีกับพิกัด หากจำเป็น ตัวเลือกนี้
มีไว้เพื่อลดหน่วยความจำที่ต้องใช้ในการครอบตัดรูปภาพขนาดใหญ่ หมายเหตุ:
ใช้การครอบตัดก่อนการปรับขนาด
-flip
- พลิกรูปภาพที่ถอดรหัสในแนวตั้ง (อาจเป็นประโยชน์สำหรับพื้นผิว OpenGL สำหรับ
เป็นต้น)
-resize width height
- ปรับขนาดรูปภาพที่ถอดรหัสใหม่เป็นขนาด
width
x height
ตัวเลือกนี้คือ
เพื่อลดหน่วยความจำที่ต้องใช้ในการถอดรหัสภาพขนาดใหญ่
ต้องการไฟล์เวอร์ชันขนาดเล็กเท่านั้น (ภาพขนาดย่อ ตัวอย่าง ฯลฯ) หมายเหตุ: การปรับขนาด
จะใช้หลังการครอบตัด
หากพารามิเตอร์ width
หรือ height
ตัวใดตัวหนึ่ง (ไม่ใช่ทั้ง 2 ตัว) คือ 0
ค่านี้จะคำนวณโดยคงสัดส่วนภาพไว้
-v
- พิมพ์ข้อมูลเพิ่มเติม (โดยเฉพาะเวลาที่ถอดรหัส)
-noasm
- ปิดใช้การเพิ่มประสิทธิภาพการประกอบทั้งหมด
ข้อบกพร่อง
ตัวอย่าง
dwebp picture.webp -o output.png
dwebp picture.webp -ppm -o output.ppm
dwebp -o output.ppm -- ---picture.webp
cat picture.webp | dwebp -o - -- - > output.ppm
ผู้เขียน
dwebp
เป็นส่วนหนึ่งของ libwebp
และเขียนขึ้นโดยทีม WebP
แผนผังแหล่งที่มาล่าสุดมีให้ใช้งานที่
https://chromium.googlesource.com/webm/libwebp/
หน้าคู่มือนี้เขียนโดย Pascal Massimino pascal.massimino@gmail.com
สำหรับโปรเจ็กต์ Debian (และผู้อื่นอาจใช้)
รายละเอียดรูปแบบไฟล์เอาต์พุต
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-08 UTC
[null,null,["อัปเดตล่าสุด 2025-08-08 UTC"],[[["\u003cp\u003e\u003ccode\u003edwebp\u003c/code\u003e is a command-line tool used to decompress WebP image files into various formats like PNG, PAM, PPM, or PGM.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify output file names, formats, and utilize options such as cropping, resizing, dithering, and multi-threading for customized decompression.\u003c/p\u003e\n"],["\u003cp\u003eWhile it supports several output formats and advanced options, \u003ccode\u003edwebp\u003c/code\u003e currently doesn't handle animated WebP files.\u003c/p\u003e\n"],["\u003cp\u003eBasic usage involves specifying the input WebP file and optionally the desired output file name and format using provided options.\u003c/p\u003e\n"],["\u003cp\u003eFor detailed usage, bug reporting, or contributing to the project, refer to the provided links and documentation.\u003c/p\u003e\n"]]],["`dwebp` decompresses WebP files into various image formats like PNG, BMP, TIFF, PAM, PPM, or PGM. Key actions include specifying the input WebP file and output file name, choosing the output format, and using options to modify the decoding process. You can crop, resize, flip, or apply dithering, disable in-loop filtering, or use multi-threading. It supports reading from standard input and writing to standard output and is mainly for image verification.\n"],null,["# dwebp\n\nName\n----\n\n`dwebp` -- Decompress a WebP file to an image file\n\nSynopsis\n--------\n\n`dwebp [options] input_file.webp`\n\nDescription\n-----------\n\n`dwebp` decompresses WebP files into PNG, PAM, PPM or PGM images.\nNote: Animated WebP files are not supported.\n\nOptions\n-------\n\nThe basic options are:\n\n`-h`\n: Print usage summary.\n\n`-version`\n: Print the version number (as major.minor.revision) and exit.\n\n`-o string`\n: Specify the name of the output file (as PNG format by default). Using \"-\"\n as output name will direct output to 'stdout'.\n\n`-- string`\n: Explicitly specify the input file. This option is useful if the input\n file starts with an '-' for instance. This option must appear `last`.\n Any other options afterward will be ignored. If the input file is \"-\",\n the data will be read from stdin instead of a file.\n\n`-bmp`\n: Change the output format to uncompressed BMP.\n\n`-tiff`\n: Change the output format to uncompressed TIFF.\n\n`-pam`\n: Change the output format to PAM (retains alpha).\n\n`-ppm`\n: Change the output format to PPM (discards alpha).\n\n`-pgm`\n: Change the output format to PGM. The output consists of luma/chroma\n samples instead of RGB, using the IMC4 layout. This option is mainly for\n verification and debugging purposes.\n\n`-yuv`\n: Change the output format to raw YUV. The output consists of\n luma/chroma-U/chroma-V samples instead of RGB, saved sequentially as\n individual planes. This option is mainly for verification and debugging\n purposes.\n\n`-nofancy`\n: Don't use the fancy upscaler for YUV420. This may lead to jaggy edges\n (especially the red ones), but should be faster.\n\n`-nofilter`\n: Don't use the in-loop filtering process even if it is required by the\n bitstream. This may produce visible blocks on the non-compliant output,\n but it will make the decoding faster.\n\n`-dither strength`\n: Specify a dithering strength between 0 and 100. Dithering is a\n post-processing effect applied to chroma components in lossy compression.\n It helps by smoothing gradients and avoiding banding artifacts.\n\n`-nodither`\n: Disable all dithering (default).\n\n`-mt`\n: Use multi-threading for decoding, if possible.\n\n`-crop x_position y_position width height`\n: Crop the decoded picture to a rectangle with top-left corner at\n coordinates (`x_position`, `y_position`) and size `width` x `height`. This\n cropping area must be fully contained within the source rectangle. The\n top-left corner will be snapped to even coordinates if needed. This option\n is meant to reduce the memory needed for cropping large images. Note: the\n cropping is applied *before* any scaling.\n\n`-flip`\n: Flip decoded image vertically (can be useful for OpenGL textures for\n instance).\n\n`-resize width height`\n: Rescale the decoded picture to dimension `width` x `height`. This option is\n mostly intended to reducing the memory needed to decode large images, when\n only a small version is needed (thumbnail, preview, etc.). Note: scaling\n is applied *after* cropping.\n If either (but not both) of the `width` or `height` parameters is `0`,\n the value will be calculated preserving the aspect-ratio.\n\n`-v`\n: Print extra information (decoding time in particular).\n\n`-noasm`\n: Disable all assembly optimizations.\n\nBugs\n----\n\n- Please report all bugs to our issue tracker: \u003chttps://issues.webmproject.org\u003e\n\n- Patches welcome! See this page to get started: \u003chttps://www.webmproject.org/code/contribute/submitting-patches/\u003e\n\nExamples\n--------\n\n dwebp picture.webp -o output.png\n dwebp picture.webp -ppm -o output.ppm\n dwebp -o output.ppm -- ---picture.webp\n cat picture.webp | dwebp -o - -- - \u003e output.ppm\n\nAuthors\n-------\n\n`dwebp` is part of `libwebp`, and was written by the WebP team.\nThe latest source tree is available at\n\u003chttps://chromium.googlesource.com/webm/libwebp/\u003e\n\nThis manual page was written by Pascal Massimino [pascal.massimino@gmail.com](mailto:pascal.massimino@gmail.com),\nfor the Debian project (and may be used by others).\n\n**Output file format details**\n\n- PAM: \u003chttp://netpbm.sourceforge.net/doc/pam.html\u003e\n- PGM: \u003chttp://netpbm.sourceforge.net/doc/pgm.html\u003e\n- PPM: \u003chttp://netpbm.sourceforge.net/doc/ppm.html\u003e\n- PNG: \u003chttp://www.libpng.org/pub/png/png-sitemap.html#info\u003e"]]