Advertisement
MastroPino

macOS Images to webp

Aug 9th, 2022 (edited)
714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. # Script to convert images to webp directly from the macOS Finder.
  2. # You need to install cwebp via brew (brew install webp)
  3.  
  4. for f in "$@"
  5. do
  6. /opt/homebrew/bin/cwebp -q 100 "$f" -o "${f%.*}.webp"
  7. done
  8.  
  9. afplay /System/Library/Sounds/Submarine.aiff
  10. osascript -e 'display notification "Conversione completata!" with title "Webp"'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement