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

    1 answer 1

    Remove all external services and use jpeg_quality for optimization. Perhaps add_image_size will be needed.

    • I do not understand how this will help? This is just a filter to set the level of compression for jpeg when uploading it to the server. We have PNG, GIF, WEBM, BMP. To press it on PHP is sooooo expensive. About 10 sizes of different thumbnails are created - mihdan
    • @mihdan, why do you need so many thumbnails, if not a secret? - Pyramidhead
    • It will help at least with the fact that it will reduce the time for sending a heap of pictures to third-party services and back. - SeVlad
    • We used to use the ewww plugin, he was able to call server utilities for optimization, but over time, the resource became highly visited and even this option began to slow down and crash. Made pending optimization with the same plugin. That was enough for a couple of months. - mihdan
    • @SeVlad it will also be sprinkled on PHP as before (resources are not eating badly) talk here is the quality of the photo, we should be close to 100% - design resource - mihdan