Article 5KDTA How to get a command to run for all *.webp files in folder?

How to get a command to run for all *.webp files in folder?

by
grumpyskeptic
from LinuxQuestions.org on (#5KDTA)
I want to convert some .webp image files to .png or preferably .jpeg

These commands both work OK:

dwebp file.webp -o file.png

ffmpeg -i file.webp file.png

How do I get them to convert every .webp file in the folder, not just file.webp?

So I would like them to change for example alpha.webp to alpha.png, even if I have not specified the name alpha.

The command lines above have been copied from https://winaero.com/convert-webp-png-linux/

The version of Image Magick I have is too old to be able to convert .webp files. I use Linux Mint Cinnamon 17.3 Rosa.

Thanks.latest?d=yIl2AUoC8zA latest?i=w0oIJ4WEXjU:tYoANbvI5WE:F7zBnMy latest?i=w0oIJ4WEXjU:tYoANbvI5WE:V_sGLiP latest?d=qj6IDK7rITs latest?i=w0oIJ4WEXjU:tYoANbvI5WE:gIN9vFww0oIJ4WEXjU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments