I have a lot of images that I would like to process with pngquant. They are organized in a pretty deep directory structure, so it is very time-consuming to manually cd
cd
With the fish shell you can run the following from the root of your project directory
pngquant **.png
Which will generate new files with extensions like -or8.png or -fs8.png.
-or8.png
-fs8.png
If you want to overwrite the existing files, you can use
pngquant **.png --ext .png --force