Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation


Mac (PNG & JPG)
  1. Save img2webp.sh and place it in the same folder as your images to convert
  2. Make sure to install brew install webp

Usage: ./img2webp.sh

Usage with optional quality parameter: ./img2webp.sh [QUALITY] - (quality 1-100, default: 100)

Example: ./img2webp.sh 80

If the script doesn’t run, update the permissions:

chmod +x img2webp.sh


Windows (PNG)
# Convert-PNG-to-WebP.ps1
  1. Downloads cwebp (Google WebP tools)

  2. Converts all PNGs to lossless WebP

  3. Verifies every PNG has a matching WebP

How to use:

Place in the same folder as the pngs, run with powershell.

Tip: If double‑clicking doesn’t run due to execution policy, open the folder in Terminal and run:

Unblock-File -Path ".\Convert-PNG-to-WebP.ps1"

About

(Windows AND Mac! JPG as well)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages