Sometimes it is necessary to regenerate thumbnails or the images in smaller resolutions. This is necessary, for example, if you have changed the resolution values for the step sizes under Settings -> Media.
There are a number of plugins that do this for you, e.g. Regenerate Thumbnails . However, if you do not want to install a plug-in for this, there is an easy option via WP-CLI .
We initiate regeneration with the following command:
wp media regenerate
Now you have to confirm with yes via the console. To anticipate the question, there is the parameter –yes :
wp media regenerate --yes
That’s it! Now we can watch the progress in the console output. By the way, WP-CLI can be used wonderfully in our hosting packages. Copy WP-CLI onto it, log in via SSH and use WP-CLI.
With WP-CLI, many tasks, such as time-controlled updates or backups, can be automated. Feel free to contact me, I would be happy to support you.
Leave a Reply