GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chebishev/imageToWepbBatchConvert: Python tool for batch converting images (static & animated) to WebP using Google’s libwebp engine.

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
webp_convert
webp_convert
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
config.py
config.py
 
 
initial_message.py
initial_message.py
 
 
main.py
main.py
 
 
messages.py
messages.py
 
 
new_webp_batch_convert.webp
new_webp_batch_convert.webp
 
 
requirements.txt
requirements.txt
 
 
webpbatchconvert.webp
webpbatchconvert.webp
 
 

Repository files navigation

🖼️ Image to WebP Batch Convert

Batch convert static and animated images to .webp format using Google’s libwebp engine.

This lightweight Python tool uses the native binaries from WebP’s official releases, bundled inside the project (in the webp_convert folder). The latest included version is libwebp 1.5.0

✅ Features

  • Batch convert images to WebP

  • Supports static and animated formats

  • Includes Windows binaries (via libwebp)

  • Outputs a detailed report, including warnings for unsupported formats

  • Works with png, jpeg, jpg, tiff, gif, and webp

  • CLI-based, lightweight, and dependency-free (except for Python and Pillow)

📺 Demo

Click on the images bellow to see the tool in action:

(in order of appearance: Old demo, New demo)

OLD DEMO NEW DEMO

⚙️ Platform Support

🪟 Windows:

(fully supported out of the box)

🐧 Linux / macOS:

You can adapt the config by modifying config.py to use system-installed WebP binaries or adjust paths accordingly.

📦 Usage

⚠️ Requires Python and Pillow installed.

  1. Clone the repository
git clone https://github.com/chebishev/imageToWepbBatchConvert.git
cd imageToWepbBatchConvert
  1. (Optional) Activate a virtual environment:
python -m venv .venv
.venv\Scripts\activate # or source .venv/bin/activate for Linux
  1. Install dependencies
pip install -r requirements.txt
  1. Run the script
python main.py

🚫 Notes

  • Files not in the supported list will still be attempted, but you’ll get a warning in the report if output might be unusable.

  • For animated GIFs, ensure the input file is valid and properly formatted.

📁 Structure

.
├── webp_convert/               # Contains extracted libwebp binaries (Windows)
├── config.py                   # You can set the libwebp path, default quality, input/ouput folders)
├── main.py                     # Main entry point
├── messages.py                 # all strings used in the main.py and initial_message.py
├── new_webp_batch_convert.webp # new demo thumbnail
├── requirements.txt            # Python dependencies
└── webpbatchconvert.webp       # old demo thumbnail

📝 License

MIT License © Atanas Chebishev

About

Python tool for batch converting images (static & animated) to WebP using Google’s libwebp engine.

Topics

batchcompressconvertimagelibwebppythonwebp

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.