installwebp with the /go/installwebp Command

/go/installwebp makes the WebP tools available on the server so GoAdmio can convert images to WebP with webp. It: The tools it installs include cwebp (convert to WebP) and dwebp (convert from WebP). Depending on the source, you also get gif2webp, img2webp, webpinfo, and webpmux. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Install the WebP tools
/go/installwebp

Then check the result:

cwebp -version

Options

None. Any arguments you pass are written to the log file and otherwise ignored.

Examples

# Run the installer
/go/installwebp

# Check the installed version
cwebp -version

# Show which cwebp is used (and whether there is more than one)
which -a cwebp

# Convert an image to WebP
cwebp -q 80 photo.jpg -o photo.webp

# Convert a WebP image back to PNG
dwebp photo.webp -o photo.png

# Review past runs
tail /var/log/go/installwebp.log

Output

The command prints Installing WEBP..., followed by the output of the package manager. Downloads run quietly, with one attempt and a 20-second timeout. There is no success message, and the command doesn’t stop on errors: every step runs even if an earlier one failed. The exit status is that of the last command.

Every run adds a line to /var/log/go/installwebp.log:

[Nov 20 14:03:11]# installwebp

Security

[!WARNING]
The fallback downloads are made with --no-check-certificate, so the server’s TLS certificate isn’t verified, and the file isn’t checked against a hash. The fallback version, libwebp 1.2.2, is also older than 1.3.2, the release that fixed the widely reported libwebp heap overflow (CVE-2023-4863). Prefer the package from your distribution, which receives security updates, and update the fallback version if you rely on it. See Changing the version.

See the full reference at /go/installwebp and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *