From 91bc7ec69f46fda156185d5e61e17bdfbb6f3922 Mon Sep 17 00:00:00 2001 From: Igor <309631@noreply.codeberg.org> Date: Wed, 3 Apr 2024 11:51:57 +0000 Subject: [PATCH] added notes about obtaining webp (#408) Resolves #407 Co-authored-by: I Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/408 Reviewed-by: Otto Co-authored-by: Igor <309631@noreply.codeberg.org> Co-committed-by: Igor <309631@noreply.codeberg.org> --- content/improving-documentation/screenshots.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/improving-documentation/screenshots.md b/content/improving-documentation/screenshots.md index b395296..70d3565 100644 --- a/content/improving-documentation/screenshots.md +++ b/content/improving-documentation/screenshots.md @@ -26,6 +26,20 @@ To convert a screenshot to WebP, you can use the `cwebp` command line utility li cwebp -lossless screenshot.png -o screenshot.webp ``` +
+ +{% admonition "Note" "How to install cwebp" %} + +As `cwebp` cli-tool is part of `libwebp` the package name might be different between different repositories, here's some tips how to install this tool: + +- On Debian/Ubuntu in `apt` repository by `sudo apt install webp` +- On VoidLinux `xbps` repository by `sudo xbps-install libwebp` +- On ArchLinux `aur` repository by `sudo pacman -S libwebp` + +{% endadmonition %} + + + If you prefer a GUI, there are [a number of options](https://en.wikipedia.org/wiki/WebP#Graphics_software) available, but please be sure that your GUI doesn't add thumbnails into the WebP file, which would inflate its size, rendering its key advantage meaningless. > At the time of writing, there is no support for webP images in Safari browsers.