dwebp
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نام
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
نمایش داده شود. هر گزینه دیگری پس از آن نادیده گرفته خواهد شد. اگر فایل ورودی "-" باشد، داده ها به جای فایل از 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
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 نوشته شده است (و ممکن است توسط دیگران استفاده شود).
جزئیات فرمت فایل خروجی
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-08 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-08 بهوقت ساعت هماهنگ جهانی."],[[["\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"]]