Last Updated
August 25, 2025
First Released
January 19, 2024
Download History (Last one month)
This plugin implements enhancements for the responsive images functionality in WordPress. Currently, this includes:
- Improvements to the accuracy of the
sizes
attribute by using layout information available in block themes. This enhancement is not available to classic themes.
- Implementation of the new HTML spec for adding
sizes="auto"
to lazy-loaded images. This enhancement was merged into WordPress 6.7.
See also the complimentary Image Prioritizer plugin which detects which images are outside the viewport, and then adds loading=lazy
and sizes=auto
to them.
There are currently no settings and no user interface for this plugin since it is designed to work without any configuration.
Installation from within WordPress
- Visit Plugins > Add New.
- Search for Enhanced Responsive Images.
- Install and activate the Enhanced Responsive Images plugin.
Manual installation
- Upload the entire plugin folder to the
/wp-content/plugins/
directory.
- Visit Plugins.
- Activate the Enhanced Responsive Images 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.
Changelog
1.7.0
Enhancements
- Remove
sizes=auto
as the functionality is now available in WordPress core. (2146)
Bug Fixes
- Fix: Moved
column_count
context from column
block to columns
block to ensure it is available to ancestor blocks. (2138)
Documentation
- Update Enhanced Responsive Images plugin description. (2145)
1.6.0
Features
- Accurate sizes: Add support for
core/post-featured-image
block. (2084)
Enhancements
- Remove experimental from Enhanced Responsive Images readme.txt. (2077)
1.5.0
Enhancements
- Accurate sizes: Add ancestor block context for image and cover block that help in sizes calculate. (1795)
- Accurate sizes: Calculate sizes base on ancestor block context. (1818)
1.4.0
Features
- Accurate Sizes: Incorporate layout constraints in image sizes calculations. (1738)
Enhancements
- Accurate sizes: Pass parent alignment context to images. (1701)
- Accurate sizes: Reorganize file structure by feature. (1699)
- Accurate sizes: Support relative alignment widths. (1737)
- Remove
auto_sizes_get_layout_settings()
. (1743)
Bug Fixes
- Accurate sizes: Disable layout calculations for classic themes. (1744)
1.3.0
Enhancements
- Move Auto Sizes logic from Enhanced Responsive Images to Image Prioritizer. (1476)
- Update auto sizes logic in Enhanced Responsive Images plugin to no longer load if already in Core. (1547)
1.2.0
Enhancements
- Harden logic to add
auto
keyword to sizes
attribute to prevent duplicate keyword. (1445)
- Use more robust HTML Tag Processor for auto sizes injection. (1471)
Bug Fixes
- Remove sizes attribute when responsive images are disabled. (1399)
1.1.0
Features
- Initial implementation of improved image
sizes
algorithm. (1250)
Enhancements
- Improved image
sizes
for left/right/center alignment. (1290)
- Integrate Auto Sizes with Image Prioritizer to ensure correct sizes=auto. (1322)
- Update
Auto-sizes for Lazy-loaded Images
plugin name to Enhanced Responsive Images
. (1335)
- Use correct sizes for small images. (1252)
Documentation
- Update the plugin description for Enhanced Responsive Images. (1339)
- Update the plugin header description. (1344)
1.0.2
- Improve overall code quality with stricter static analysis checks. (775)
- Bump minimum PHP requirement to 7.2. (1130)
1.0.1
- Add auto-sizes generator tag. (1105)
- Bump minimum required WP version to 6.4. (1062)
- Update tested WordPress version to 6.5. (1027)
1.0.0
- Initial release of the Auto-sizes for Lazy-loaded Images plugin as a standalone plugin. (904)