Unable to bulk compress images
-
We briefly had both Smush and WP-Optimize active at the same time, but now I have deactivated Smush and want to (re)compress all images so that WebP versions are created.
I am able to compress one by one from the media library – I am taken to the image edit screen where I see ‘Note: This image is already compressed by another plugin’ but still have the option to compress. It works, and a WebP version is created.
However, when I try and bulk compress from the WP-Optimize image settings page, I get ‘A total of 1 image(s) were successfully compressed in this iteration. 357 selected image(s) could not be compressed. Please see the logs for more information, you may try again later.’
In the logs I see:
[2023-07-17 11:53:18 : DEBUG] - Lock option (updraft_lock_smush, wp_options) already existed in the database
[2023-07-17 11:53:18 : INFO] - Lock (updraft_lock_smush, wp_options) could not be acquired (it is locked)
[2023-07-17 11:53:18 : INFO] - Failed to gain semaphore lock (smush) - another process is already processing the queue - aborting (if this is wrong - i.e. if the other process crashed without removing the lock, then another can be started after 1 minute
[2023-07-17 11:53:18 : INFO] - Cleaning up tasks of type (smush). A total of 359 tasks will be deleted.
[2023-07-17 11:53:26 : INFO] - Task with ID 1703 and type (smush) failed with error code http_request_failed - cURL error 28: Operation timed out after 1000 milliseconds with 0 bytes received
[2023-07-17 11:53:26 : INFO] - Cannot establish connection with reSmush.it webservice. Please try later
[2023-07-17 11:53:26 : INFO] - Successfully optimized the image - .The file was compressed to N/A using WP-Optimize
[2023-07-17 11:53:26 : INFO] - Completed processing task with ID : 1703, and type 'smush'
[2023-07-17 11:53:26 : INFO] - The task with id : 1704, and type 'smush' seems to have been deleted from the database.etc etc etc
- The topic ‘Unable to bulk compress images’ is closed to new replies.