Image Placeholders

描述

This plugin determines and stores the dominant color for newly uploaded images in the media library within WordPress and then uses it to create a placeholder background of that color in the frontend, visible until the image is loaded.

This plugin was formerly known as Dominant Color Images.

安装

Installation from within WordPress

  1. Visit Plugins > Add New.
  2. Search for Image Placeholders.
  3. Install and activate the Image Placeholders plugin.

Manual installation

  1. Upload the entire dominant-color-images folder to the /wp-content/plugins/ directory.
  2. Visit Plugins.
  3. Activate the Image Placeholders plugin.

常见问题

Where can I submit my plugin feedback?

Feedback is encouraged and much appreciated, especially since this plugin may contain future WordPress core features. If you have suggestions or requests for new features, you can submit them as an issue in the WordPress Performance Team’s GitHub repository. If you need help with troubleshooting or have a question about the plugin, please create a new topic on our support forum.

Where can I report security bugs?

The Performance team and WordPress community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.

To report a security issue, please visit the WordPress HackerOne program.

How can I contribute to the plugin?

Contributions are always welcome! Learn more about how to get involved in the Core Performance Team Handbook.

评价

2024 年 11 月 5 日
does not break the site, but all placeholders are grey. color detection does not work. I host WP docker latest myself with nginx and imageick + gd + webp + AVIF so yeah i think my setup is not in cause
阅读所有1条评价

贡献者及开发者

“Image Placeholders” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Image Placeholders」插件已被翻译至 8 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Image Placeholders”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.1.2

Enhancements

  • Use more robust HTML Tag Processor for Image Placeholders. (1477)

Bug Fixes

  • Re-remove unneeded phpcs:ignore. (1231)
  • Update PHPStan to 1.11.5. (1318)

1.1.1

Enhancements

  • Avoid needless array allocation in rgb to hex conversion. (1104)
  • Improve overall code quality with stricter static analysis checks. (775)
  • Bump minimum PHP requirement to 7.2. (1130)

Bug Fixes

  • Fix Imagick detecting partial transparency. (1215)

1.1.0

  • Rename plugin to “Image Placeholders”. (1101)
  • Use plugin slug for generator tag. (1103)
  • Bump minimum required WP version to 6.4. (1062)
  • Update tested WordPress version to 6.5. (1027)

1.0.1

  • Exclude “.wordpress-org” directory when deploying standalone plugins. (866)

1.0.0

  • Initial release of the Image Placeholders plugin as a standalone plugin. (704)