Just so I’m following, you’re saying you do the “swap” image functionality in the file manager and then regenerate the thumbnails for the images?
If so, I’m imagining it would be because it retains the thumbnails for the previous version of the image, and then generates new thumbnails for the new image version.
You can test it by deleting the previous version of the file and then running the generate thumbnails operation.
The reason (I am theorizing) would be if you were to switch the file back to the previous version, you wouldn’t want all your thumbnail calls on the front end to suddenly break because there are no generated thumbnails available.
Nice! Yeah I know there’s a task that clears out old page versions - I’m not sure if there’s a task that clears out old file versions though. Might be a good feature suggestion.