Particularly interesting are features such as being able to save images in different colour spaces, e.g. 4:2:0, going lo-res on the chroma for a lower ultimate file size in jpg.
If I had a lifetime spare I would complete the PHP Imagick documentation and write a version of Fred's scripts in PHP, so they can be chained together in a nifty object oriented way...
https://jcupitt.github.io/libvips/API/current/using-cli.html
Much better performance and better image format support for my use.
It also has a gui
[1] https://github.com/jcupitt/libvips/wiki/Speed-and-memory-use
It is quite powerful though somewhat eccentric.
I once developed some scripts to use it to "develop" jpg from raw images, see https://github.com/claes/gmic-extensions
http://gmic.eu/reference.shtml#subsection15
And as the commands are built-in, no needs for external scripts, those effects are available from any interface using the `libgmic` API (including C/C++ programs).