Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webp tools missing in image #9

Open
VasekPurchart opened this issue Jan 7, 2022 · 0 comments
Open

webp tools missing in image #9

VasekPurchart opened this issue Jan 7, 2022 · 0 comments

Comments

@VasekPurchart
Copy link

VasekPurchart commented Jan 7, 2022

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 VasekPurchart changed the title webp tools missing in container webp tools missing in image Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant