Skip to content
/ utils Public

Day by day helpers including code snippets, scripts and anything else that could be useful 😅

Notifications You must be signed in to change notification settings

rcrdk/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🧪 How to convert an entire folder of images to WEBP format

I was having trouble and wasting my time by converting file by file in command line. This script could help you too:

Requirements:

  • This script works on Unix based systems such as MacOS and Linux.
  • You'll need cwebp command available.

Steps:

  1. Download webp-convert-directory.sh;
  2. Open terminal;
  3. Access folder containing images;
  4. Run sh [file_path]. You can drag and drop file to terminal to get full path:
    • Example: sh /Users/ricardo/Desktop/webp-convert-directory.sh
  5. And voilà! All files converted!

About

Day by day helpers including code snippets, scripts and anything else that could be useful 😅

Topics

Resources

Stars

Watchers

Forks

Languages