Batch process .png to .webp [closed]

You can do it with a help of a simple bash script.

Navigate to the directory where your images reside and execute this:

$ for file in *
> do
> cwebp -q 80 "$file" -o "${file%.png}.webp"
> done

You can change the output file name, as you want. But should end with a .webp extension.

Leave a Comment