WEBPMUX(1)
β¨ WEBPMUX β¨
okay bestie, welcome to webpmux β it's the libwebp multitool and honestly it's giving main character energy. Let's get into it. π«Ά
πΈ NAME πΈ
webpmux β create animated WebP files from non-animated WebP images, extract frames from animated WebP images, and manage XMP/EXIF metadata and ICC profile. yes she does all of that. no cap. π
π SYNOPSIS π
webpmux -get GET_OPTIONS INPUT -o OUTPUT
webpmux -set SET_OPTIONS INPUT -o OUTPUT
webpmux -strip STRIP_OPTIONS INPUT -o OUTPUT
webpmux -frame FRAME_OPTIONS [ -frame ... ] [ -loop LOOP_COUNT ]
[ -bgcolor BACKGROUND_COLOR ] -o OUTPUT
webpmux -duration DURATION OPTIONS [ -duration ... ] INPUT -o OUTPUT
webpmux -info INPUT
webpmux [-h|-help]
webpmux -version
webpmux argument_file_name
π¦ DESCRIPTION π¦
This manual page documents the webpmux command. consider yourself documented, bestie. π
webpmux can be used to create/extract from animated WebP files, as well as to add/extract/strip XMP/EXIF metadata and ICC profile.
And here's the sneaky little trick you're gonna be obsessed with: if a single file name (not starting with the character -) is supplied as the argument, the command line arguments are actually tokenized from this file. It's giving "argument file" realness. This allows for easy scripting or using a large number of arguments. iconique. π
π OPTIONS π
β GET_OPTIONS (-get):
iccβ Get ICC profile. π¨exifβ Get EXIF metadata. πΈxmpβ Get XMP metadata. πframe nβ Get nth frame from an animated image. (n = 0has a special meaning: last frame). not me loving that0means last π
β SET_OPTIONS (-set)
loop loop_countβ Set loop count on an animated file.
Where: loop_count must be in range [0, 65535]. β³
bgcolor A,R,G,Bβ Set the background color of the canvas on an animated file.
where: A, R, G and B are integers in the range 0 to 255 specifying the Alpha, Red, Green and Blue component values respectively. π
icc file.iccβ Set ICC profile.
Where: file.icc contains the ICC profile to be set.
exif file.exifβ Set EXIF metadata.
Where: file.exif contains the EXIF metadata to be set.
xmp file.xmpβ Set XMP metadata.
Where: file.xmp contains the XMP metadata to be set.
β STRIP_OPTIONS (-strip)
iccβ Strip ICC profile. bye bestie πexifβ Strip EXIF metadata. bye πxmpβ Strip XMP metadata. bye π
β DURATION_OPTIONS (-duration)
Amend the duration of a specific interval of frames. This option is only effective on animated WebP and has no effect on a single-frame file. fr fr, don't come crying to me when nothing happens on your still image. π
duration[,start[,end]]β Where:durationis the duration for the interval in milliseconds (mandatory). Must be non-negative.startis the starting frame index of the interval (optional).endis the ending frame index (inclusive) of the interval (optional).
The three typical usages of this option are:
-duration d- set the duration to
dfor the whole animation.
- set the duration to
-duration d,f- set the duration of frame
ftod.
- set the duration of frame
-duration d,start,end- set the duration to
dfor the whole[start,end]interval.
- set the duration to
Note that the frames outside of the [start, end] interval will remain untouched. so respectful. π
The end value 0 has the special meaning 'last frame of the animation'. (same energy as the frame 0 thing earlier, iykyk β¨)
Reminder: frame indexing starts at 1. NOT zero. not me making that mistake for an hour π
β FRAME_OPTIONS (-frame)
Create an animated WebP file from multiple (non-animated) WebP images. glow-up time. π§
file_i +di[+xi+yi[+mi[bi]]]β Where:
file_i is the i'th frame (WebP format), xi,yi specify the image offset for this frame, di is the pause duration before next frame, mi is the dispose method for this frame (0 for NONE or 1 for BACKGROUND) and bi is the blending method for this frame (+b for BLEND or -b for NO_BLEND).
Argument bi can be omitted and will default to +b (BLEND). Also, mi can be omitted if bi is omitted and will default to 0 (NONE). Finally, if mi and bi are omitted then xi and yi can be omitted and will default to +0+0. nesting defaults like russian dolls, we love to see it π
-loop nβ Loop the framesnnumber of times.0indicates the frames should loop forever. Valid range is 0 to 65535 [Default: 0 (infinite)]. βΎοΈ-bgcolor A,R,G,Bβ Background color of the canvas.
where: A, R, G and B are integers in the range 0 to 255 specifying the Alpha, Red, Green and Blue component values respectively [Default: 255,255,255,255]. π€
β INPUT
Input file in WebP format. π₯
β OUTPUT (-o)
Output file in WebP format. π€
β Note:
The nature of EXIF, XMP and ICC data is not checked and is assumed to be valid. so like... she trusts you. don't betray her. π
π EXIT STATUS π
If there were no problems during execution, webpmux exits with the value of the C constant EXIT_SUCCESS. This is usually zero. slay, zero, we love a zero. β¨
If an error occurs, webpmux exits with the value of the C constant EXIT_FAILURE. This is usually one. π
π EXAMPLES π
Add ICC profile:
webpmux -set icc image_profile.icc in.webp -o icc_container.webp
Extract ICC profile:
webpmux -get icc icc_container.webp -o image_profile.icc
Strip ICC profile:
webpmux -strip icc icc_container.webp -o without_icc.webp
Add XMP metadata:
webpmux -set xmp image_metadata.xmp in.webp -o xmp_container.webp
Extract XMP metadata:
webpmux -get xmp xmp_container.webp -o image_metadata.xmp
Strip XMP metadata:
webpmux -strip xmp xmp_container.webp -o without_xmp.webp
Add EXIF metadata:
webpmux -set exif image_metadata.exif in.webp -o exif_container.webp
Extract EXIF metadata:
webpmux -get exif exif_container.webp -o image_metadata.exif
Strip EXIF metadata:
webpmux -strip exif exif_container.webp -o without_exif.webp
Create an animated WebP file from 3 (non-animated) WebP images:
webpmux -frame 1.webp +100 -frame 2.webp +100+50+50
-frame 3.webp +100+50+50+1+b -loop 10 -bgcolor 255,255,255,255
-o anim_container.webp
Get the 2nd frame from an animated WebP file:
webpmux -get frame 2 anim_container.webp -o frame_2.webp
Using -get/-set/-strip with input file name starting with -:
webpmux -set icc image_profile.icc -o icc_container.webp -- ---in.webp
webpmux -get icc -o image_profile.icc -- ---icc_container.webp
webpmux -strip icc -o without_icc.webp -- ---icc_container.webp
π«Ά AUTHORS π«Ά
webpmux is a part of libwebp and was written by the WebP team. The latest source tree is available at https://chromium.googlesource.com/webm/libwebp
This manual page was written by Vikas Arora <vikaas.arora@gmail.com>, for the Debian project (and may be used by others). thank you vikas, you ate. π
πΈ REPORTING BUGS πΈ
Please report all bugs to the issue tracker: https://issues.webmproject.org
Patches welcome! See this page to get started: https://www.webmproject.org/code/contribute/submitting-patches/
bestie if you found a bug, tell them, don't just suffer in silence π
π SEE ALSO π
cwebp(1), dwebp(1), gif2webp(1)
Please refer to https://developers.google.com/speed/webp/ for additional information. go read, it's worth it β
and that's the whole page, bestie β this was WEBPMUX(1) from the General Commands Manual, dated July 18, 2024. periodt. πβ¨ππ¦
π¦ where this page comes from
- alpine 3.22: libwebp-doc 1.5.0-r0 Β· BSD-3-Clause
- alpine 3.23: libwebp-doc 1.6.0-r0 Β· BSD-3-Clause
- alpine 3.24: libwebp-doc 1.6.0-r0 Β· BSD-3-Clause
- arch rolling: libwebp 1.6.0-2 Β· BSD-3-Clause
- debian trixie: webp 1.5.0-0.1 Β· BSD-3-Clause
- fedora 43: libwebp-tools 1.6.0-2.fc43 Β· Apache-2.0 AND LicenseRef-scancode-google-patent-license-webm AND BSD-3-Clause AND FSFULLRWD
- fedora 44: libwebp-tools 1.6.0-3.fc44 Β· Apache-2.0 AND BSD-3-Clause WITH AdditionRef-WebM-patent-license AND BSD-3-Clause AND FSFULLRWD
- nixos 26.05: libwebp 1.6.0
- nixpkgs unstable: libwebp 1.6.0
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- ubuntu questing: webp 1.5.0-0.1
- ubuntu resolute: webp 1.5.0-0.1build1 Β· BSD-3-Clause
- ubuntu stonking: webp 1.6.0-0.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms