How to generate different image styles at upload? I'm using Drupal 8.
Is there a hook for generating image from image style or better one module?

For example. I upload an image. When image is displayed for the first time, Drupal generates image style. Can I hook to that event somehow, at best when uploading the image?
Ah yes, you are right.


  Image derivatives will be automatically generated once requested and not-yet existing.


That's a quote from my own answer to a similar question. I guess you could try to hook into the upload somehow like Image Style Warmer does it, or simply try that module out yourself.


  Synopsis
  
  The Image Style Warmer module provides options to create image styles
  during upload or via queue worker. So configured image derivates
  already exists when they are requested.