Plugin Author
Pedro
(@petredobrescu)
Hey @jonathanretines,
How would this feature work in your case? When such a replacement would take place, you’d like to duplicate the same image in the Media Library, or the image you select from the Media Library should really be used instead of the one you’re replacing, everywhere in the content across the website? And that means the replaced image is completely removed from the Media Library?
A clear example (with some image names) would probably clarify this feature request. Thanks!
Hi Pedro,
Thanks for your quick answer and for the great work on the plugin.
Here are two concrete examples: 1. Image versioning during a project
During a website build, I might use several versions of the same visual:
image-v0 → first draft used in several mockup pages
image-v1 → updated version used on some of those pages (or othe images for placing purpose)
image-vF → final retouched image
While waiting for the final file, I may already have v0 and v1 spread across different pages.
When vF is ready, what I’d like to do is:
- Replace all instances of
v0 by v1, then
- Replace all instances of
v1 (which now covers all previous uses of v0) by vF
In the end, only vF should remain in use, and ideally only one image should stay in the library for that visual. The previous versions shouldn’t be duplicated or kept active unless I decide to keep them.
2. Replacing an old project image with a newer one
Later on, I might update my portfolio and decide that:
- An old project image used in several places on the site
- Should be replaced by a more recent image that is already uploaded elsewhere in the Media Library (for another page or project)
In this situation, I don’t want to upload a new file again.
I’d like to:
- Choose an existing image from the Media Library
- Tell Enable Media Replace: “Use this one instead, everywhere this old image is currently used.”
So it’s really a replacement of usage, not a new upload.
That’s exactly the kind of feature I’m looking for: a way to consolidate and clean image usage by switching all references from one media item to another already in the library.
Have a great day,
Jonathan
Plugin Author
Pedro
(@petredobrescu)
Hello Jonathan,
Thanks for providing these details; they are very useful to understand the use cases you want to cover. Indeed, none of these features is currently available in our plugin, and I can’t tell for sure if or when we’ll be able to implement them. I’ll surely add them to our development backlog, and if they are implemented, please watch the plugin change log for more details, because this thread will get closed after a while.
Meanwhile, if you are a developer and have some spare time, we always welcome pull requests to our public GitHub repository:
https://github.com/short-pixel-optimizer/enable-media-replace
All the best!
Thanks for your answer. By any chance, is there a workaround that you may think of ?