You are viewing the documentation for an older version of this package. You can check the version you are using with the following command:
composer show spatie/laravel-medialibrary
Regenerating images
When you change a conversion on your model, all images that were previously generated will not be updated automatically. You can regenerate your images via an artisan command. Note that conversions are often queued, so it might take a while to see the effects of the regeneration in your application.
php artisan media-library:regenerate
If you only want to regenerate the images for a single model, you can specify it as a parameter:
php artisan media-library:regenerate "App\Post"
If you only want to regenerate images for a few specific media items, you can pass their IDs using the --ids option: