wp-cli / media-command

Imports files as attachments, regenerates thumbnails, or lists registered image sizes.
MIT License
44 stars 41 forks source link

How does delete works? #155

Closed criting closed 1 year ago

criting commented 2 years ago
  1. Does the deletion of an old thumbnail when generation a new one is done after the new one is generated or before that?
  2. Old thumbnail size was 415x415 and all thumbnails had 415x415 in the link which loads the actual resized cropped image of the original, but when generating the next thumbnails 615x615, the files are there, but all the thumbnails now have the links of the original full-size image, unless you regenerate the thumbnails from the admin panel? Why is that
danielbachhuber commented 1 year ago

Thanks for the questions, @criting !

Does the deletion of an old thumbnail when generation a new one is done after the new one is generated or before that?

I believe the old thumbnail is deleted before the new one is created.

Old thumbnail size was 415x415 and all thumbnails had 415x415 in the link which loads the actual resized cropped image of the original, but when generating the next thumbnails 615x615, the files are there, but all the thumbnails now have the links of the original full-size image, unless you regenerate the thumbnails from the admin panel? Why is that

I'm not quite sure what's going on here. It might be specific to your environment.