commando icon indicating copy to clipboard operation
commando copied to clipboard

webp tools missing in image

Open VasekPurchart opened this issue 3 years ago • 0 comments

Hello, stumbled upon this great project because I needed https://developers.google.com/speed/webp/docs/webpinfo .

I found it via https://command-not-found.com/webpinfo which I understand is a related project if Commando. And I think this issue lies probably more within that side of things, based on what I read in #3. But I have found no way to report it on that site.

Whichever of the WebP tools I try to install I get only a container with libwebp, but no actual runnable command (afaik), for example:

$ docker run --rm -it cmd.cat/webpinfo bash
Unable to find image 'cmd.cat/webpinfo:latest' locally
latest: Pulling from webpinfo
97518928ae5f: Already exists 
855023b9a688: Already exists 
dbc368251d6c: Already exists 
38360df80cbc: Pull complete 
Digest: sha256:68fbef4cd650be3eecfe408dc093bc570727c6793847b99e17a6afc2d986029f
Status: Downloaded newer image for cmd.cat/webpinfo:latest
bash-5.1# webpinfo
bash: webpinfo: command not found
bash-5.1# apk list | grep webp
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: No such file or directory
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/community: No such file or directory
libwebp-1.2.0-r2 x86_64 {libwebp} (BSD-3-Clause) [installed]

If I install libwebp-tools i get all the relevant commands:

bash-5.1# apk add libwebp-tools
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/4) Installing giflib (5.2.1-r0)
(2/4) Installing libjpeg-turbo (2.1.0-r0)
(3/4) Installing libpng (1.6.37-r1)
(4/4) Installing libwebp-tools (1.2.0-r2)
Executing busybox-1.33.1-r6.trigger
OK: 12 MiB in 28 packages
bash-5.1# webpinfo
Usage: webpinfo [options] in_files
Try -longhelp for an exhaustive list of options.
bash-5.1# cwebp
Usage:

   cwebp [options] -q quality input.png -o output.webp

where quality is between 0 (poor) to 100 (very good).
Typical value is around 80.

Try -longhelp for an exhaustive list of advanced options.
bash-5.1# apk list | grep webp
libwebp-doc-1.2.0-r2 x86_64 {libwebp} (BSD-3-Clause)
libwebp-tools-1.2.0-r2 x86_64 {libwebp} (BSD-3-Clause) [installed]
libwebp-1.2.0-r2 x86_64 {libwebp} (BSD-3-Clause) [installed]
libwebp-static-1.2.0-r2 x86_64 {libwebp} (BSD-3-Clause)
libwebp-dev-1.2.0-r2 x86_64 {libwebp} (BSD-3-Clause)

So as stated above, I think the installation instructions are incorrect, which then causes the image being built incorrectly. Hope my investigation will help :)

VasekPurchart avatar Jan 07 '22 15:01 VasekPurchart