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으로 변경합니다. 출력은 루마/크로마로 구성됩니다.
IMC4 레이아웃을 사용하여 RGB 대신 샘플을 사용합니다. 이 옵션은 주로
확인 및 디버깅할 목적으로 사용됩니다.
-yuv
- 출력 형식을 원시 YUV로 변경합니다. 출력은
RGB 대신 luma/chroma-U/chroma-V 샘플을 다음과 같이 순차적으로 저장
개별 비행기입니다. 이 옵션은 주로 인증 및 디버깅용입니다.
있습니다.
-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
xheight
크기로 조정합니다. 이 옵션은
주로 대형 이미지를 디코딩하는 데 필요한 메모리를 줄이는 데 목적이 있습니다.
작은 버전 (썸네일, 미리보기 등)만 필요합니다. 참고: 크기 조정
자르기 후에 적용됩니다.
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이 작성했습니다.
를 사용해야 하며 다른 사용자가 사용할 수도 있습니다.
출력 파일 형식 세부정보
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]