Currently I trying to regenerate image from current format .png to default (jpg).. But I notice that I generate new file with new format.. So now have images with format .png and .jpg.. So how can I replace the old format or delete it.. From my study can use command provided by spatie either clear or clean.. But its the best way or there is any other ways? Thanks in advance..
I'm using spatie media library v8 https://spatie.be/docs/laravel-medialibrary/v8/introduction
So currently I want to use default format which is jpg
So basically I need to regenerate all the old images. However because new changes is different format it will create new image where the final result will have two images (img.png and img.jpg). I have more than 400k of images, so I need be careful in this.
So is there any solution or the only is to use command clean/clear provides by the package.