Bulk Smush Not Working On Images

Started bulk smushing my images but they get stuck at 12 images out of 256 total. Unable to get any images from media library.

  • Neel Gajjar
    • Product Manager

    Hello Fernando,

    how are you doing today?

    Sorry to hear you are having an issue in Bulk Smush.

    I did try to Bulk Smush the images and I got an error in the console.

    [attachments are only viewable by logged-in members]

    Bulk smush was stuck at one image with id 531.

    When I visited the Media > Gallery to check the image it seems like a corrupted image was uploaded or image was corrupted while uploading and due to which Smush couldn’t compress it and stopped the compression for the next images.

    [attachments are only viewable by logged-in members]

    We had a similar report of Bluk Smush not working due to corrupted images and it was forwarded to our developer.

    It will be fixed in the upcoming version of Smush Pro till then developers had provided a quick fix for it.

    As in the chat you had given access to the FTP account. I went ahead and fixed it by doing a small change in the code.

    In Smush plugin folder in file core/modules/class-wp-smush-ajax.php on line 748 change:

    ‘file_name’ => printf(

    replaced it to :

    ‘file_name’ => sprintf(

    And then I tested the bulk Smush and it seems to work fine.

    [attachments are only viewable by logged-in members]

    Hope this helps,

    Please feel free to ask more questions if you have any.

    Kind regards,

    Neel Gajjar