A free, lightweight and easy to use plugin that lets you replace an image or file in your Media Library by uploading a new file in its place. No more deleting, renaming and re-uploading files! It also removes image backgrounds and upscales small images with AI, one image at a time or in bulk. Suppor
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.9 and PHP 7.4.
SourceWordPress plugins · Nov 30, 2026
01 / Source details
Aboutthistool.
A free, lightweight and easy to use plugin that lets you replace an image or file in your Media Library by uploading a new file in its place. No more deleting, renaming and re-uploading files! It also removes image backgrounds and upscales small images with AI, one image at a time or in bulk. Supported by the friendly team that created ShortPixel 🙂
🆕 New! Bulk Enhance, AI image upscale and transparent PNG
Bulk Enhance – A new page under Media > Bulk Enhance processes many images in one run: remove the background of all your WooCommerce product images, or upscale the small images of your Media Library.
AI image upscale – Enlarge a small image 2×, 3× or 4× with AI upscaling, with a preview before you replace it.
Transparent PNG – When you remove a background you can now get a PNG with a transparent background, also from a JPG image. The links to the image on your site are updated.
Backups and restore – Bulk Enhance backs up every original first, so you can restore a whole run anytime.
Runs in the background – A started bulk keeps going after you close the page.
A real timesaver
Don’t you find it tedious and complicated to first delete a file and then upload another one with the exact same name every time you want to update an image or other uploaded file in the WordPress Media Library?
Well, no longer!
Now you can replace any uploaded file from the Media Library or the Edit Media view, where it should be.
It’s simple to replace a file
Replacing media can be done in two ways:
01Just replace the file. This option requires you to upload a file of the same type as the file you want to replace. The attachment name remains the same regardless of what the file you upload is called.
02Replace the file, use the new file name, and update all links. If you check this option, the old file will be replaced with the name and type of the file you are uploading. All links pointing to the current file will be updated to point to the new file name. Additional options for the folder to put the new file in or the date of the new file are also available on the replace screen.
The links are also updated in the content saved by page builders such as Elementor, Bricks, Breakdance, Beaver Builder and WPBakery, and the cache of the most popular caching plugins is cleared after a replacement. The plugin is compatible with WP Offload Media and offers a preview of the replaced image.
Remove the background of any image
Similar to replacing media, you can remove the background of the images from the Media Library. The image is sent to ShortPixel’s API, the background is removed and the result is shown in a preview. If everything looks good, replace the image with the one that has the background removed. You can choose between:
a transparent background for PNG images (JPG images cannot be transparent, so they get a white one);
a solid background in the color and opacity of your choice;
a transparent PNG, also for JPG images: the image is converted to PNG and the links to it on your site are updated.
Upscale small images with AI
Enlarge an image 2×, 3× or 4× with AI upscaling, right from the Media Library. Pick the factor, check the preview, and replace the image with the upscaled version. Images up to 1200 pixels wide can be upscaled.
Bulk Enhance: many images in one run
The Media > Bulk Enhance page runs one of two operations over many images:
Bulk background removal – Removes the background from all images of your WooCommerce products: featured image, gallery and variations.
Bulk image upscale – Makes the small JPG and PNG images of your Media Library larger. You choose the width below which images are upscaled (1200 pixels by default), and each image is enlarged as far as its size allows, up to 4×.
The originals are copied to a backup folder first, so you can restore them anytime from the same page. The bulk is fastest with the page open, and it can keep going in the background after you close it. When it is done, a filter in the Media Library shows the images that were processed.
Bulk Enhance needs a ShortPixel API key on an Unlimited plan.
How much does it cost?
Replacing media is free, with no limits.
Background removal and image upscale are done by ShortPixel’s AI and use 8 AI credits per image:
The Free plan includes 10 background removals and image upscales, with no API key needed.
For more, add an API key from a ShortPixel Unlimited plan : it comes with monthly AI credits and unlocks Bulk Enhance.
The ShortPixel Unlimited AI plan has no limit on AI credits.
The API key is added on the remove background, upscale or Bulk Enhance screen, where you can also see how many AI credits are left this month.
Show file modification time
There is a shortcode that takes the file modification date and displays it in a post or on a page. The code is: [file_modified id=XX format=XXXX] where the “id” is required and the “format” is optional and defaults to your current WordPress settings for date and time format.
So [file_modified id=870] would show the last time the file with ID 870 was updated on your site. To get the ID for a file, check the URL when editing a file in the Media Library: it is the number after post= .
If you want more control over the format in which the time is shown, you can use the format option. So [file_modified id=870 format=Y-m-d] would show the date the file was modified but not the time. The format string uses the standard PHP date() formatting tags .
Other plugins by ShortPixel :
FastPixel Caching – WP Optimization made easy
ShortPixel Image Optimizer – Image optimization & compression for all the images on your website, including WebP & AVIF delivery
To shorten the wait time before redirecting to the media editing screen, specify the wait time in seconds (0 means that redirection is immediate, but may cause problems in certain configurations):
`add_filter('emr/success/timeout', function () { return 3; });```
To set “Just replace the file” as the default replacing method:
The replace screen: the current file, the new file and the replacement options.The Replace media, Remove background and Upscale image buttons in the Edit Media view.The remove background screen, with the transparent, transparent PNG and solid background options.The upscale screen, with a 4× preview next to the current image.Bulk Enhance: remove the background of your WooCommerce product images or upscale the small images of your Media Library.Bulk Enhance: choosing the operation and its options.Bulk Enhance: the progress of a run, with the original and the result of the latest image.The Media Library filtered on the images a bulk upscaled.
02 / Source details
Gettingstarted.
Quick and easy installation:
01Upload the folder enable-media-replace to your plugin directory
02Activate the plugin through the ‘Plugins’ menu in WordPress
03Done!
03 / Source details
Frequently asked questions.
What does this plugin actually do?
This plugin makes it easy to update/replace files that have been uploaded to the WordPress Media Library. It can also remove the background of an image and upscale small images with AI, one image at a time or in bulk.
How does it work?
A “Replace media” option is available in the Media Library list, in the Edit Media view and in the media modal. This is where you can upload a new file to replace the old one. For images, the “Remove background” and “Upscale image” options are next to it.
I replaced a file, but it didn’t change!
There are two main reasons this would happen.
First, make sure you are not viewing a cached version of the file, especially if you replaced an image. Press “Refresh” in your browser to make sure. If your site uses a CDN, clear its cache too.
Second, if the file really looks unchanged, make sure WordPress has write permissions to the files in your uploads folder. If you have ever moved your WP installation (maybe when you moved it to a new server), the permissions on your uploaded files are commonly reset so that WordPress no longer has permissions to change the files. If you don’t know how to do this, contact your web server operator.
Is the plugin free?
Replacing media is free, with no limits. Background removal and image upscale use ShortPixel’s AI: the Free plan includes 10 images, and an API key from a ShortPixel Unlimited plan gives you monthly AI credits. The Unlimited AI plan has no limit.
Do I need an API key?
Not for replacing media, and not for the first 10 background removals and image upscales. You need a ShortPixel API key on an Unlimited plan to go beyond the Free plan and to use Bulk Enhance.
What is an AI credit?
One background removal or one image upscale uses 8 AI credits. The remove background, upscale and Bulk Enhance screens show how many AI credits your API key has left this month.
Which images does Bulk Enhance process?
The bulk background removal processes the images of your WooCommerce products (featured image, gallery and variations), so it needs WooCommerce. The bulk image upscale processes the JPG and PNG images of the Media Library that are narrower than the width you set. Images that a previous bulk already processed are skipped.
Can I undo a bulk?
Yes. Bulk Enhance copies every original to the EMR_Backups folder inside your uploads folder before it replaces it. The Bulk Enhance page has a restore option for each operation, which puts the originals back and removes the backups.
Who can use these features?
Replacing a file is available to the users who can upload files. Renaming the file, changing its folder, removing a background and upscaling are limited to Editors and above. Bulk Enhance is for administrators.
Does the plugin use any external services?
Yes, for background removal and image upscale only. When you use one of these features (on a single image or in a bulk), the image and the options you chose are sent to the ShortPixel API (api.shortpixel.com), which sends the result back. If you added an API key, it is sent along and checked there, together with the address of your site. Nothing is sent when you only replace media. The plugin also asks api.shortpixel.com for news about the plugin, which you can switch off with the emr/feature/remote_notice filter.
The service is provided by ShortPixel: Terms of Service , Privacy Policy .
Where do I report security bugs found in this plugin?
Please report security bugs found in the source code of the Enable Media Replace plugin through the Patchstack Vulnerability Disclosure Program . The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati