Title: Cannot regenerate thumbnails
Last modified: March 8, 2021

---

# Cannot regenerate thumbnails

 *  Resolved [sgot](https://wordpress.org/support/users/sgot/)
 * (@sgot)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-regenerate-thumbnails-2/)
 * Hi,
    I have W3TC configured so that all my attachments are hosted, and automatically
   uploaded, on Amazon S3 service.
 * Now we changed some image sizes for our theme, but the **thumbnails regeneration
   fails** because the image is not present on the server.
    It’s not a “Regenerate
   Thumbnails” plugin problem, because also **wp-cli** call returns the same error.
   So forgive me if I’d call this as a kind of “core feature removal” from W3TC.
   Can you suggest some workaround to get it done relatively quickly, without being
   forced to download every single image from S3 and reupload them to recreate the
   correct sizes? It would be very painful to do manually, above all for those who
   have a lot of images on their website.
 * Is there maybe some filter through which we could:
    1. temporary download from S3
    2. resize/regenerate
    3. upload the resized images (possibly only those not already existing)
    4. and then delete them from the server?
 * After all the process described in the steps 3 and 4 is already done by W3TC 
   when uploading a new picture.
 * Thank you in advance for your help and for your work.
 * Andrea
    -  This topic was modified 5 years, 2 months ago by [sgot](https://wordpress.org/support/users/sgot/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-regenerate-thumbnails-2/#post-14150274)
 * Hello [@sgot](https://wordpress.org/support/users/sgot/)
 * Thank you for your inquiry and I am happy to assist you with this!
    Of course,
   in order to manipulate images, you need to have them locally. w3tc can remap 
   URLs to s3 and upload them, but it never removes original files after uploading
   it, so if you are missing them – something else removed original ones. So I am
   afraid there is no workaround for this, unfortunately. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Cannot regenerate thumbnails’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-regenerate-thumbnails-2/#post-14150274)
 * Status: resolved