Compress images directly on upload via any image form.
https://www.drupal.org/project/tinypng install via composer
get API KEY from https://tinyjpg.com/developers (you get 500 free compressions per month)
enable module, then in module settings (/admin/config/tinypng) put your API KEY (compress on upload: YES, integration method: DOWNLOAD, enable TinyPNG image action: YES)
this method work actualy with Image field (entity reference + entity browser doesn´t)