替换图像

描述

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.

屏幕截图

  • The 替换图像 button in the Attachment Details screen (opened by clicking on an image in the Media Library).

安装

  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.

评价

2021年4月25日
Replace Image es un plugin muy ligero y fácil de usar. Vale la pena implementarlo para evitar errores y complicaciones al tener que cambiar imágenes en nuestros sitios Wordpress.
2020年10月25日
Better than the famous image replacement plugin while being lighter weight. Even processed my WP water mark, custom directories, custom original removal, ect. Accidentally set the threshold for full screen images just barely too small for cover images. Without this plugin Id either have to manually go into each post folder, resize them all, water mark them, and change the quality; or start over again for all my post image covers. Replace image gracefully replaces the original while following all WP standards. Thank you for this great plugin. 🙂
2020年9月3日
This plugin is a life-saver for me. When I need to update a pdf I've already released, I can just replace the image so the link remains the same as the original. I use it ALL the time.
阅读所有52条评价

贡献者及开发者

“替换图像” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“替换图像”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.7

  • Updated links, author, changed branding to Aspen Grove Studios
  • Updated tested up to
  • Removed donation links,
  • Added aspengrovestudios as contributor
  • Updated banner and icon

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