⤵
- Install https://pngquant.org/
$ brew install pngquant
- Press ⌘Shift5 to launch Screenshot.app
- Go to Options → Other Location… and change the folder to
~/Screenshots
- Go to Options → Other Location… and change the folder to
- Launch Automator.app and File → New → Folder Action
- Choose your
~/Screenshots
folder - Drag the Run Shell Script action in
- Change Pass input: to as arguments
- Paste:
for filename in "$@"; do /usr/local/bin/pngquant "$filename" --output "$filename" --quality=65-80 --force --strip done
- Save and Quit
- Choose your
- Screenshot away and enjoy!