Given a folder path, convert all eligible images to .webp format. Old files are kept, while newly created .webp will be stored in a new folder.
- Download the WebP converter from Google.
- Add this batch script in the
/bin/
folder. - Open a terminal in the bin folder.
- Run the following
convert_all.bat <folder_name>
- Obtain your new .webp files in the newly created folder named with the current timestamp.
Example:
convert_all.bat "D:\Installs\Webp Converter\test_folder"
Refer to Google's documentation here.