Type
magento2-module
N/A
magento2-module
OSL-3.0
None
None
None
None
None
composer require phlpdtrt/multiprocess-catalog-images-resizer
there is nothing to configure
simply call the console command with the desired amount of workers
bin/magento phlpdtrt:multi-process-catalog:images:resize 4
this command would start 4 workers resizing product images in parallel. This is a very cpu intense task, so it makes absolutely no sense to use more worker than cpu cores you have.
the best way to stop the worker is to kill the master process (the console command). Shortly after the process is terminated, the worker will also stop the execution