By default, there is no way to replace images or any other media files directly from the Media Files in WordPress.
If you decide to change an image in a WordPress post, you will first delete the image and then re-upload the new image. But since the new image will have a new URL, you will have to manually update all the links leading to the previous image.
Thankfully, we tried and came across a plugin called ‘Easy Media Replace’ that keeps the image ID and URL of the updated image intact.
Note: Before you proceed, bear in mind to name the new image the same as the old one. Other websites that mention links to your images will only be changed when you keep the old and the new file names the same.
Now, let’s see how the Easy Media Replace plugin makes replacing images in WordPress a matter of a few clicks.
there is also a plugin called WXY Tools Media Replace that is easier to use and works anywhere you can upload an attachment. It also preserves any alternate text, descriptions, or categories for attachments. Hope this is helpful.