add
...
"require": {
....
"drupal/imageapi_optimize": "^4.0@beta",
"drupal/imageapi_optimize_binaries": "^1.0@alpha",
"drupal/imageapi_optimize_resmushit": "^2.0@beta",
"drupal/imageapi_optimize_tinypng": "^1.1@beta",
"drupal/imageapi_optimize_webp": "^2.0@beta"
}
composer update
drush en imageapi_optimize imageapi_optimize_binaries imageapi_optimize_resmushit imageapi_optimize_tinypng imageapi_optimize_webp -y
settings (add post processing)
/admin/config/media/imageapi-optimize-pipelines
in imagestyle select postprocess