Some images don’t compress

Some images don’t compress and show this error:

is not writable

The same issue when I trying to do it manually.

  • Kris Tomczyk
    • Ex Staff

    Hi GUSTAVO

    I hope you are doing good today.

    I was able to test those 3 images on my lab site and all of those were smushed correct without any issue. I double-checked once again those 3 images on our site by uploading them to the media library. This of course forced by default to create a new 2020 folder in /uploads and 01 folders inside that 2020 folder. Both by default gets 777 folder permission.

    I review older folders like 2019 and all inside folders and they all have 755. Which makes the issue here. After I change the permission to 777 I was able to manually smush 2 of those images in the media library (only 2 of those 3 reported because 4-1-e1577959112613.png does not exist on FTP, there is only 4-1.png, looks like image exists as 4-1-e1577959112613.png only in the database). As for 4-1-e1577959112613.png I recommend downloading 4-1.png from /uploads/2019/11 and re-upload to media library as new image + attach to post/page once again where it was used.

    As for the main issue with those folder permissions I recommend to talk with the host does any owner/group permission changed on the server site. As you can see in my above reply new folder 2020 by default got now 777 permission. This confirms that some changes were made in the last days/weeks.

    Also please try now to bulk smush the rest of the images to see does all works fine after I change all permissions to 777.

    Kind Regards,
    Kris