# 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: ![Capture d’écran 2025-03-03 à 12.52.52-fs8](https://hackmd.io/_uploads/BylruzXoyx.png) Finally, go to your Finder, and click the three dots ("More..."): ![Screenshot 2025-02-10 at 19.38.59-fs8](https://hackmd.io/_uploads/BJ61_6PFJe.png) Turn on pngquant as a Quick Action: ![Screenshot 2025-02-10 at 19.37.51-fs8](https://hackmd.io/_uploads/ryuiwavYJe.png) You can now compress PNGs straight from the Finder: ![Screenshot 2025-02-10 at 19.34.27-fs8](https://hackmd.io/_uploads/H1ggPawF1g.png) # Same with JPEG images Link: https://www.icloud.com/shortcuts/c7841557461c4d66a4631afd0ca7f6a9 ``` brew install jpegoptim ``` ![Capture d’écran 2025-03-03 à 12.51.57-fs8](https://hackmd.io/_uploads/BJQZOzXoye.png)