← 返回命令列表

Linux command

dwebp 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert WebP to PNG

dwebp [image.webp] -o [output.png]

Convert to PPM

dwebp [image.webp] -ppm -o [output.ppm]

Convert to BMP

dwebp [image.webp] -bmp -o [output.bmp]

Show image info

dwebp -info [image.webp]

Convert with

dwebp [image.webp] -o [output.png]

Flip image

dwebp -flip [image.webp] -o [output.png]

说明

dwebp decodes WebP images to other formats. It's part of the libwebp package providing reference implementations for WebP encoding and decoding. The tool supports both lossy and lossless WebP images, including those with alpha transparency. Output format defaults to PNG unless specified otherwise. dwebp is useful for converting WebP images from web sources to formats compatible with tools that don't support WebP natively.

参数

-o _FILE_
Output file path.
-ppm
Output PPM format.
-bmp
Output BMP format.
-tiff
Output TIFF format.
-pgm
Output PGM format (grayscale).
-info
Print image info only.
-flip
Flip image vertically.
--help
Display help information.

FAQ

What is the dwebp command used for?

dwebp decodes WebP images to other formats. It's part of the libwebp package providing reference implementations for WebP encoding and decoding. The tool supports both lossy and lossless WebP images, including those with alpha transparency. Output format defaults to PNG unless specified otherwise. dwebp is useful for converting WebP images from web sources to formats compatible with tools that don't support WebP natively.

How do I run a basic dwebp example?

Run `dwebp [image.webp] -o [output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _FILE_ do in dwebp?

Output file path.