{"id":186295,"date":"2024-01-19T19:04:21","date_gmt":"2024-01-19T19:04:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/auto-sizes-for-lazy-loaded-images\/"},"modified":"2025-12-02T22:34:44","modified_gmt":"2025-12-02T22:34:44","slug":"auto-sizes","status":"publish","type":"plugin","link":"https:\/\/ps.wordpress.org\/plugins\/auto-sizes\/","author":20220395,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.7.0","stable_tag":"1.7.0","tested":"6.9.4","requires":"6.8","requires_php":"7.2","requires_plugins":null,"header_name":"Enhanced Responsive Images","header_author":"WordPress Performance Team","header_description":"This plugin implements the HTML spec for adding `sizes=\"auto\"` to lazy-loaded images.","assets_banners_color":"68bede","last_updated":"2025-12-02 22:34:44","external_support_url":"","external_repository_url":"https:\/\/github.com\/WordPress\/performance","donate_link":"","header_plugin_uri":"https:\/\/github.com\/WordPress\/performance\/tree\/trunk\/plugins\/auto-sizes","header_author_uri":"https:\/\/make.wordpress.org\/performance\/","rating":0,"author_block_rating":0,"active_installs":50000,"downloads":322306,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"performanceteam","date":"2024-04-15 17:10:15"},"1.0.2":{"tag":"1.0.2","author":"performanceteam","date":"2024-05-20 17:12:05"},"1.1.0":{"tag":"1.1.0","author":"performanceteam","date":"2024-07-15 17:17:17"},"1.2.0":{"tag":"1.2.0","author":"performanceteam","date":"2024-08-19 17:15:16"},"1.3.0":{"tag":"1.3.0","author":"westonruter","date":"2024-11-12 00:54:33"},"1.4.0":{"tag":"1.4.0","author":"performanceteam","date":"2025-04-09 15:05:04"},"1.5.0":{"tag":"1.5.0","author":"performanceteam","date":"2025-06-25 05:08:56"},"1.6.0":{"tag":"1.6.0","author":"performanceteam","date":"2025-08-12 04:21:25"},"1.7.0":{"tag":"1.7.0","author":"performanceteam","date":"2025-12-02 22:34:44"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3098222,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3098222,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":3098222,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3098222,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3098222,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.1.0","1.2.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[223849,163,247],"plugin_category":[50,54],"plugin_contributors":[77594],"plugin_business_model":[216239],"class_list":["post-186295","plugin","type-plugin","status-publish","hentry","plugin_tags-auto-sizes","plugin_tags-images","plugin_tags-performance","plugin_category-media","plugin_category-security-and-spam-protection","plugin_contributors-wordpressdotorg","plugin_business_model-community","plugin_committers-adamsilverstein","plugin_committers-joemcgill","plugin_committers-performanceteam","plugin_committers-westonruter","plugin_support_reps-adamdunnage","plugin_support_reps-jamesosborne","plugin_support_reps-mukesh27"],"banners":{"banner":"https:\/\/ps.w.org\/auto-sizes\/assets\/banner-772x250.png?rev=3098222","banner_2x":"https:\/\/ps.w.org\/auto-sizes\/assets\/banner-1544x500.png?rev=3098222","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/auto-sizes\/assets\/icon.svg?rev=3098222","icon":"https:\/\/ps.w.org\/auto-sizes\/assets\/icon.svg?rev=3098222","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin implements enhancements for the responsive images functionality in WordPress. Currently, this includes:<\/p>\n\n<ol>\n<li>Improvements to the accuracy of the <code>sizes<\/code> attribute by using layout information available in <a href=\"https:\/\/wordpress.org\/documentation\/article\/block-themes\/\">block themes<\/a>. This enhancement is not available to classic themes.<\/li>\n<li>Implementation of the new HTML spec for adding <code>sizes=\"auto\"<\/code> to lazy-loaded images. This enhancement was <a href=\"https:\/\/make.wordpress.org\/core\/2024\/10\/18\/auto-sizes-for-lazy-loaded-images-in-wordpress-6-7\/\">merged<\/a> into WordPress 6.7.<\/li>\n<\/ol>\n\n<p>See also the complimentary <a href=\"https:\/\/wordpress.org\/plugins\/image-prioritizer\/\">Image Prioritizer<\/a> plugin which detects which images are outside the viewport, and then adds <code>loading=lazy<\/code> and <code>sizes=auto<\/code> to them.<\/p>\n\n<p>There are currently <strong>no settings<\/strong> and no user interface for this plugin since it is designed to work without any configuration.<\/p>\n\n<!--section=installation-->\n<h4>Installation from within WordPress<\/h4>\n\n<ol>\n<li>Visit <strong>Plugins &gt; Add New<\/strong>.<\/li>\n<li>Search for <strong>Enhanced Responsive Images<\/strong>.<\/li>\n<li>Install and activate the <strong>Enhanced Responsive Images<\/strong> plugin.<\/li>\n<\/ol>\n\n<h4>Manual installation<\/h4>\n\n<ol>\n<li>Upload the entire plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Visit <strong>Plugins<\/strong>.<\/li>\n<li>Activate the <strong>Enhanced Responsive Images<\/strong> plugin.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='where%20can%20i%20submit%20my%20plugin%20feedback%3F'><h3>Where can I submit my plugin feedback?<\/h3><\/dt>\n<dd><p>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 <a href=\"https:\/\/github.com\/WordPress\/performance\/issues\/new\/choose\">submit them as an issue in the WordPress Performance Team's GitHub repository<\/a>. If you need help with troubleshooting or have a question about the plugin, please <a href=\"https:\/\/wordpress.org\/support\/plugin\/auto-sizes\/#new-topic-0\">create a new topic on our support forum<\/a>.<\/p><\/dd>\n<dt id='where%20can%20i%20report%20security%20bugs%3F'><h3>Where can I report security bugs?<\/h3><\/dt>\n<dd><p>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.<\/p>\n\n<p>To report a security issue, please visit the <a href=\"https:\/\/hackerone.com\/wordpress\">WordPress HackerOne<\/a> program.<\/p><\/dd>\n<dt id='how%20can%20i%20contribute%20to%20the%20plugin%3F'><h3>How can I contribute to the plugin?<\/h3><\/dt>\n<dd><p>Contributions are always welcome! Learn more about how to get involved in the <a href=\"https:\/\/make.wordpress.org\/performance\/handbook\/get-involved\/\">Core Performance Team Handbook<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.7.0<\/h4>\n\n<p><strong>Enhancements<\/strong><\/p>\n\n<ul>\n<li>Remove <code>sizes=auto<\/code> as the functionality is now available in WordPress core. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/2146\">2146<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Bug Fixes<\/strong><\/p>\n\n<ul>\n<li>Fix: Moved <code>column_count<\/code> context from <code>column<\/code> block to <code>columns<\/code> block to ensure it is available to ancestor blocks. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/2138\">2138<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Documentation<\/strong><\/p>\n\n<ul>\n<li>Update Enhanced Responsive Images plugin description. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/2145\">2145<\/a>)<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Accurate sizes: Add support for <code>core\/post-featured-image<\/code> block. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/2084\">2084<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Enhancements<\/strong><\/p>\n\n<ul>\n<li>Remove experimental from Enhanced Responsive Images readme.txt. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/2077\">2077<\/a>)<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<p><strong>Enhancements<\/strong><\/p>\n\n<ul>\n<li>Accurate sizes: Add ancestor block context for image and cover block that help in sizes calculate. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1795\">1795<\/a>)<\/li>\n<li>Accurate sizes: Calculate sizes base on ancestor block context. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1818\">1818<\/a>)<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Accurate Sizes: Incorporate layout constraints in image sizes calculations. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1738\">1738<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Enhancements<\/strong><\/p>\n\n<ul>\n<li>Accurate sizes: Pass parent alignment context to images. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1701\">1701<\/a>)<\/li>\n<li>Accurate sizes: Reorganize file structure by feature. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1699\">1699<\/a>)<\/li>\n<li>Accurate sizes: Support relative alignment widths. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1737\">1737<\/a>)<\/li>\n<li>Remove <code>auto_sizes_get_layout_settings()<\/code>. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1743\">1743<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Bug Fixes<\/strong><\/p>\n\n<ul>\n<li>Accurate sizes: Disable layout calculations for classic themes. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1744\">1744<\/a>)<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<p><strong>Enhancements<\/strong><\/p>\n\n<ul>\n<li>Move Auto Sizes logic from Enhanced Responsive Images to Image Prioritizer. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1476\">1476<\/a>)<\/li>\n<li>Update auto sizes logic in Enhanced Responsive Images plugin to no longer load if already in Core. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1547\">1547<\/a>)<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<p><strong>Enhancements<\/strong><\/p>\n\n<ul>\n<li>Harden logic to add <code>auto<\/code> keyword to <code>sizes<\/code> attribute to prevent duplicate keyword. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1445\">1445<\/a>)<\/li>\n<li>Use more robust HTML Tag Processor for auto sizes injection. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1471\">1471<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Bug Fixes<\/strong><\/p>\n\n<ul>\n<li>Remove sizes attribute when responsive images are disabled. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1399\">1399<\/a>)<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Initial implementation of improved image <code>sizes<\/code> algorithm. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1250\">1250<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Enhancements<\/strong><\/p>\n\n<ul>\n<li>Improved image <code>sizes<\/code> for left\/right\/center alignment. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1290\">1290<\/a>)<\/li>\n<li>Integrate Auto Sizes with Image Prioritizer to ensure correct sizes=auto. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1322\">1322<\/a>)<\/li>\n<li>Update <code>Auto-sizes for Lazy-loaded Images<\/code> plugin name to <code>Enhanced Responsive Images<\/code>. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1335\">1335<\/a>)<\/li>\n<li>Use correct sizes for small images. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1252\">1252<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Documentation<\/strong><\/p>\n\n<ul>\n<li>Update the plugin description for Enhanced Responsive Images. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1339\">1339<\/a>)<\/li>\n<li>Update the plugin header description. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1344\">1344<\/a>)<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Improve overall code quality with stricter static analysis checks. (<a href=\"https:\/\/github.com\/WordPress\/performance\/issues\/775\">775<\/a>)<\/li>\n<li>Bump minimum PHP requirement to 7.2. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1130\">1130<\/a>)<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Add auto-sizes generator tag. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1105\">1105<\/a>)<\/li>\n<li>Bump minimum required WP version to 6.4. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1062\">1062<\/a>)<\/li>\n<li>Update tested WordPress version to 6.5. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/1027\">1027<\/a>)<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release of the Auto-sizes for Lazy-loaded Images plugin as a standalone plugin. (<a href=\"https:\/\/github.com\/WordPress\/performance\/pull\/904\">904<\/a>)<\/li>\n<\/ul>","raw_excerpt":"Improvements for responsive images in WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/186295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=186295"}],"author":[{"embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/performanceteam"}],"wp:attachment":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=186295"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=186295"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=186295"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=186295"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=186295"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=186295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}