# Compress screenshots from the Finder on macOS without TinyPNG
For the past few years, I have been using an Automator script that would compress PNGs using `tinypng-cli` that I could call from the Finder.
I recently learned how TinyPNG compresses PNGs: it calls out to `pngquant`, which is an open-source program that you can download yourself. Not using TinyPNG means I no longer need to send my images to a third-party, and I no longer need a network connection to compress images.
To do that, you will first have to install `pngquant`:
```bash
brew install pngquant
```
Then, get the shortcut: https://www.icloud.com/shortcuts/a63b010001c547b196f89eaa6262e9ef
It looks like this:

Finally, go to your Finder, and click the three dots ("More..."):

Turn on pngquant as a Quick Action:

You can now compress PNGs straight from the Finder:

# Same with JPEG images
Link: https://www.icloud.com/shortcuts/c7841557461c4d66a4631afd0ca7f6a9
```
brew install jpegoptim
```
