Webp format how to convert multiple images in subfolders

We will describe in this article how Google In has  convert WebP image format that is used in next generation web sites in bulk.

Convert multiple image files to Webp format. With subfolders

First, download for Windows from https://developers.google.com/speed/webp/download 

Jpg To Webp

We extract the downloaded file from the compressed folder and move it to the desktop. Then change the name of the folder to WebConverter.

 Png To Webp

 Gif To Webp

We open the folder and create a new Text Document. We change the name and extension of the file to webp-convert.bat as shown in the picture.

Jpg To Webp

 Png To Webp

Open the webp-convert.bat file by right-clicking edit on it. into the following code and save it by typing

@echo off

setlocal EnableDelayedExpansion

pushd %1

for /f "delims=" %%n in ('dir /b /s /a-d-h-s') do IF NOT ".webp" == "%%~xn" (

  set url=%%n

  set urlkirp=!url:~0,-4!

  set yeniurl=!urlkirp!.webp

  echo !yeniurl!

"%~dp0cwebp.exe" -q 80  "%%n" -o "!yeniurl!"


 Gif To Webp

Open any folder and type shell: sendto in the address bar

 Bmp To Webp

drop the webp-convert file that we created as shortcut.

Multiple Convert Webp

We can convert the images in all subfolders to WebP format by right clicking on the relevant folder and selecting webp-convert.

jpg to webp

png to webp

gif to webp

bmp to webp

Folders And Subfolders Convert

Jpg To Webp