Our website has a lot of images (around 30.000). I’m looking for a way to regenerate all thumbnails, as our website’s layout has changed. Using a plugin is not reliable as it requires a browser.
So, is there any way to regenerate all thumbnails via BASH?
NOTE: the images should have the following sizes: 630×290 and 960×495. Images should be center-cropped.
You could use imagemagick’s convert.
http://www.imagemagick.org/Usage/resize/#resize
As example use of it in a bash script is this:
Remove echo when you think it’s the right command already.
i don’t know about BASH,
but you can regenerate your post thumbnails without any plugin, just put the below code in your theme functions.php