There is a WordPress site on its own server. At the front, added a form for the institution user portfolio, in which you can attach up to 100 photos.
At the moment, 100 photos are downloaded in the order of 20 minutes, and 2 hours are sprinkled and optimized.
To optimize the photo, use the external service https://imagify.io/ .
Also, when uploading each photo, its colors are determined and put into the base.
How to optimize this process, reduce the time of the script? What are the solutions, plugins? Perhaps, to make the pictures to be sprinkled by the server via ewww, for example. Do it deferred by cropping. Maybe the solution will be to create a virtual file system like flysystem?
Any thought, link, technology, anything will help. thank