Image
Image

Easy Replace Image

Описание

This plugin allows you to replace an attachment file by uploading another image or by downloading one from a specified URL, without deleting the attachment. The plugin handles the sub-sizes generation and the attachment metadata update, and you will see the result right away.

SVG attachments are supported too: an SVG attachment can be replaced with another SVG file, and a raster image with another raster image (JPG, PNG, GIF, WebP, AVIF).

Demo

License

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Снимки на разширението

Blocks

This plugin provides 1 block.

  • Eri Block

ЧЗВ

Can I replace an SVG image?

Yes, with another SVG file. The replacement keeps the same file name and URL, so an SVG cannot be replaced with a raster image (or the other way around). The SVG files that contain scripts, event handlers or embedded external content are refused. You can adjust this check with the easy_replace_image/svg_is_safe filter.

Отзиви

Image
07.08.2026
Very useful plugin and works fine with Bricks Builder. Don't broke images previously added in the editor.
Image
05.12.2024
Finalmente un plugin che da la possibilità di sostituire le immagini via url
Image
16.07.2024 3 replies
I think you miss regeneration. Cleaning cache is unhelpful. Kindly add manual image regeneration please. Awesom plugin!
Image
13.12.2023
I've been migrating an image gallery of about 9000 images collected since 2006, from a third party gallery, to Foo Gallery. It's been a laborious manual process. Along the way, I find images that need some simple editing, and re-uploading. But neither Foo Gallery nor wordpress allows for a basic image replacement. So I tried this, and it works very easily. It does take a little time and a few refreshes for the new image to appear correctly in Foo Gallery (deleting the WP cache helps), but I'm very pleased with the result.
Image
27.09.2023
This little plugin is a real gem! Small, simple and effective. Very neat! Only one thing I would add, the option to replace 'Product gallery' images for products (WooCommerce) from 'Edit product' screen.
Image
21.03.2022
"Easy Replace Image" m'a permis de remplacer rapidement une image en trois cliques sans devoir revoir ou corriger l'ensemble des pages sur lesquelles se retrouvait l'image en question. Cependant, j'ai constaté que les modifications ne s'affichaient pas sur le navigateur de travail (Chrome), mais tout était OK sur les navigateurs témoins (firefox et Microsoft Edge). Après avoir vidé le cache de chrome tout était OK. Merci Julia Cazan pour votre travail.
Прочетете всички 10 отзива

Сътрудници и разработчици

“Easy Replace Image” е софтуер с отворен код. Към разширението са допринесли следните хора:

Сътрудници

Превеждане на “Easy Replace Image” на вашия език.

Имате интерес към разработване?

Преглеждане на кода, разглеждане на SVN хранилище, или абонамент към програмната история (log) чрез RSS.

Списък с промени

3.6.0

  • Tested up to 7.2
  • PHP 8.5 compatibility checks (the image size functions detect the SVG files natively)
  • Adds support for replacing the SVG images (an SVG is replaced only with another SVG, and a raster image only with another raster image)
  • The SVG files are validated before the replacement, the ones with scripts, event handlers or embedded external content are refused (filter easy_replace_image/svg_is_safe available for a custom sanitization)
  • The replace action is available in the Media screen for the SVG files too
  • Fixes the previews that were not refreshed after the replacement: block editor featured image, editor canvas, product gallery and other thumbnails of the same file
  • Refreshes the file size and the dimensions on the attachment edit screen after the replacement
  • Shows an error message when the replacement fails, and fixes the upload error check
  • Updates the dependencies and the build setup

See the changelog for detailed information on changes made in the earlier versions.