LinuxCommandLibrary

webpmux

Manipulate WebP metadata and animation

TLDR

Extract frame from animation

$ webpmux -get frame [1] [input.webp] -o [frame.webp]
copy
Get ICC profile
$ webpmux -get icc [input.webp] -o [profile.icc]
copy
Set ICC profile
$ webpmux -set icc [profile.icc] [input.webp] -o [output.webp]
copy
Show info
$ webpmux -info [input.webp]
copy
Strip metadata
$ webpmux -strip all [input.webp] -o [output.webp]
copy

SYNOPSIS

webpmux [-get type] [-set type file] [-info] input [-o output]

DESCRIPTION

webpmux is a tool from Google's libwebp library for manipulating WebP image files at the container level. It can extract and set metadata profiles (ICC color, XMP, EXIF), extract individual frames from animated WebP files, and combine frames into animations.
The tool operates on the WebP container format without re-encoding the image data, making operations fast and lossless. Metadata can be stripped from files to reduce size, or added to include color management and descriptive information.
For animated WebP files, individual frames can be extracted as separate WebP images, and frame timing and looping parameters can be inspected with the info command.

PARAMETERS

-get TYPE

Extract (frame, icc, xmp).
-set TYPE FILE
Set metadata.
-strip TYPE
Remove metadata.
-info
Show information.
-o FILE
Output file.

CAVEATS

WebP format only. Part of libwebp-tools. Animation support.

HISTORY

webpmux is part of libwebp by Google, providing tools to manipulate WebP images.

SEE ALSO

cwebp(1), dwebp(1), img2webp(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community