Then make sure to clean the thumbnail table to have a clean start. Easiest way is to run a TRUNCATE on the thumbnail table. Before: BACKUP.
TRUNCATE TABLE `media_thumbnail`;
Clear cache
I’m not sure it is needed – and be careful to not take your shop down, because without cache the CPU might be overwhelmed with all the running PHP.
bin/console cache:clear
Delete the thumbnails
Before regenerating, we need to get rid of the old ones. And although you could just run an rm -rf, I recommend to rename the thumbnails – just in case.
mv thumbnail thumbnail_bak mkdir thumbnail
And we need to create the thumbnail directory again, because Shopware throws an exception and one doesn’t see it if you don’t monitor your message consumers, like inside of a supervisord.