डीवेबपी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
नाम
dwebp
-- WebP फ़ाइल को इमेज फ़ाइल में डीकंप्रेस करें
सारांश
dwebp [options] input_file.webp
ब्यौरा
dwebp
, WebP फ़ाइलों को PNG, PAM, PPM या PGM इमेज में डीकंप्रेस कर देता है.
ध्यान दें: ऐनिमेशन वाली WebP फ़ाइलें इस्तेमाल नहीं की जा सकतीं.
विकल्प
बुनियादी विकल्प ये हैं:
-h
- प्रिंट के इस्तेमाल की खास जानकारी.
-version
- वर्शन नंबर (Major.minor.revision) प्रिंट करें और बाहर निकलें.
-o string
- आउटपुट फ़ाइल का नाम बताएं (डिफ़ॉल्ट रूप से PNG फ़ॉर्मैट में). "-" का इस्तेमाल करना
ऐसा इसलिए, क्योंकि आउटपुट का नाम आउटपुट को 'stdout' पर ले जाएगा.
-- string
- इनपुट फ़ाइल के बारे में साफ़ तौर पर बताएं. यह विकल्प तब उपयोगी होता है, जब
फ़ाइल '-' से शुरू होती है उदाहरण के लिए. यह विकल्प
last
के तौर पर दिखना चाहिए.
इसके बाद, किसी भी अन्य विकल्प को अनदेखा कर दिया जाएगा. अगर इनपुट फ़ाइल "-" है, तो
डेटा को फ़ाइल के बजाय, stD से पढ़ा जाएगा.
-bmp
- आउटपुट फ़ॉर्मैट को बिना कंप्रेस किए BMP में बदलें.
-tiff
- आउटपुट फ़ॉर्मैट को बिना कंप्रेस किए गए TIFF में बदलें.
-pam
- आउटपुट फ़ॉर्मैट को PAM में बदलें (ऐल्फ़ा को बनाए रखता है).
-ppm
- आउटपुट फ़ॉर्मैट को PPM में बदलें (ऐल्फ़ा वर्शन को बंद करता है).
-pgm
- आउटपुट फ़ॉर्मैट को PGM में बदलें. आउटपुट में लूमा/क्रोमा शामिल होता है
इसलिए, हम IMC4 लेआउट का इस्तेमाल कर रहे हैं. यह विकल्प मुख्य रूप से
की पुष्टि करने और डीबग करने के मकसद से.
-yuv
- आउटपुट फ़ॉर्मैट को रॉ YUV में बदलें. आउटपुट में यह शामिल होता है
आरजीबी के बजाय लूमा/क्रोमा-यू/क्रोमा-वी के नमूने, इस क्रम में सेव किए गए
अलग-अलग हवाई जहाज़ों के बारे में बात करते हैं. यह विकल्प मुख्य रूप से, पुष्टि और डीबग करने के लिए है
के मकसद से बनाया गया है.
-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
पैरामीटर में से कोई एक (लेकिन दोनों नहीं) 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@gmail.com ने लिखा है,
Debian प्रोजेक्ट के लिए है (और इसका उपयोग अन्य लोग कर सकते हैं).
आउटपुट फ़ाइल फ़ॉर्मैट की जानकारी
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]