Author: chris peng

The webp format is a picture format launched by Google. Compared with other conventional formats, this format has better compression efficiency. If the client’s browser supports it, our website will send the webp format to reduce the packet size.Based on other scripts on the Internet, I wrote this batch file to achieve batch conversion from conventional format to webp format. This script will search all the image files in the specified folder (and all the subfolders), and create a corresponding directory structure in the specified path to store the converted webp format files.The script#! /bin/bash shopt -s nullglob # Globs…

Read More