Replace Image

Description

The Replace Image plugin adds a button to the Attachment Details screen which allows you to upload or select an image to replace the current image while retaining the URL and attachment ID. This allows you to easily swap in an updated version of an image without having to re-select it in theme settings pages, post/page content, or anywhere else where it might be referenced.

Important: Disable your browser’s cache and any WordPress caching plugins before use; otherwise, the plugin may appear not to work. See Tools > Replace Image for instructions.

If you like this plugin, please consider making a donation.

Screenshots

  • The Replace Image button in the Attachment Details screen (opened by clicking on an image in the Media Library).

Installation

  1. Click “Plugins” > “Add New” in the WordPress admin menu.
  2. Search for “Replace Image”.
  3. Click “Install Now”.
  4. Click “Activate Plugin”.

Alternatively, you can manually upload the plugin to your wp-content/plugins directory.

FAQ

Installation Instructions
  1. Click “Plugins” > “Add New” in the WordPress admin menu.
  2. Search for “Replace Image”.
  3. Click “Install Now”.
  4. Click “Activate Plugin”.

Alternatively, you can manually upload the plugin to your wp-content/plugins directory.

I tried to replace an image but nothing happened.

Your browser is likely still caching the old image. Try doing a hard refresh (Ctrl + F5 on Windows, Apple + R / Command + R on Mac) while viewing the page on the frontend. Note that the backend seems to retain cached image thumbnails even after a hard refresh.

Reviews

Lifesaver

I had to replace a big batch of photos with scaled ones. Without this plugin this task would have been a nightmare. Deleting the original file, re-uploading the new version and above all, keeping track of the changes. But instead, replacing images with this plugin was a breeze. Awesome!

Such a great development tool.

I love this plugin for development so I’m able to keep track of the media I’m using and keep the media library organized. Also a great way to keep clients organized.

Love, love, love it!

Thank you!

Saved me so much time!!!

had to replace about 50 client logo to a new format and without this plugin I would have needed to remove and re-upload to every testimonial. This allowed me to go straight to the media library and just click on them easily!

Read all 38 reviews

Contributors & Developers

“Replace Image” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Replace Image” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.6

  • Plugin now deletes files associated with the old image prior to replacement

1.1.5

  • Fixed non-critical PHP warning

1.1.3

  • Fixed undefined offset error per https://wordpress.org/support/topic/undefined-index-0-on-line-100-mainfile?replies=1

1.1.1

  • Added support for image replacement where the image file being replaced doesn’t exist
  • Removed anonymous functions

1.1

  • Added functionality to prevent image caching in the Media Library

1.0.3

  • Fixed a bug where the upload UI would temporarily stop working properly after replacing an image.

1.0

  • Initial release