imagify-plugin icon indicating copy to clipboard operation
imagify-plugin copied to clipboard

Parallel Bulk Optimization?

Open LordSimal opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe. Our customer's website has around 7000 images in their library with varying sizes. We are currently optimizing the images on our dev server to check, how much space can be saved and speed gained in the frontend.

But in the end no matter what's the result, this optimization process needs to be run again on the live server again (with potentially new images, which were uploaded recently)

Describe the solution you'd like Therefore, it would be nice, if at least the WP CLI command has some sort of parallel functionality where images are being processed in parallel instead of them being processed one by one. This would massively reduce the amount of optimization.

Describe alternatives you've considered None

Additional context Since - as far as I can tell - the optimization happens externally via imagify.com and NOT on the server directly, there is "only" the load of

  • fetching the image IDs from the DB
  • uploading the unoptimized image to the imagify API
  • waiting for the response and saving the response over the extisting image

So even for e.g. shared hosters the major load would be on the file system, not the CPU or any other part.

But of course the Imagify API needs to be able to handle multiple requests from the same client as well (don't know if you have some sort of rate limiting active)

LordSimal avatar Aug 18 '25 10:08 LordSimal