Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As you could see on Twitter, there is https://drupal.org/project/imageapi_optimize that have been trying the same thing for more than 3 years. Could we merge into it? It has a plugin system and is extensible, can use external services etc. I've just create #2142955: Move image optimization settings out of the Image toolkit settings so that the drush integration can happen.