Image CDN set wrong max-width for the cover block
-
With image CDN:
<div class="wp-block-cover alignfull has-background-dim-10 has-background-dim clickable-cover is-style-default" style="min-height:100vh"><img loading="lazy" width="1519" height="753" class="wp-block-cover__image-background wp-image-1503" alt="mars mars rover space travel robot 73910" src="https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=750%2C600&ssl=1" style="object-position:50% 27%" data-object-fit="cover" data-object-position="50% 27%" srcset="https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?w=1625&ssl=1 1625w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=300%2C240&ssl=1 300w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=1024%2C819&ssl=1 1024w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=768%2C614&ssl=1 768w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=1536%2C1229&ssl=1 1536w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=1568%2C1254&ssl=1 1568w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=600%2C480&ssl=1 600w" sizes="(max-width: 750px) 100vw, 750px"><noscript><img loading="lazy" width="750" height="600" class="wp-block-cover__image-background wp-image-1503" alt="mars mars rover space travel robot 73910" src="https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=750%2C600&ssl=1" style="object-position:50% 27%" data-object-fit="cover" data-object-position="50% 27%" srcset="https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?w=1625&ssl=1 1625w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=300%2C240&ssl=1 300w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=1024%2C819&ssl=1 1024w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=768%2C614&ssl=1 768w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=1536%2C1229&ssl=1 1536w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=1568%2C1254&ssl=1 1568w, https://i1.wp.com/ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg?resize=600%2C480&ssl=1 600w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1"></noscript><div class="wp-block-cover__inner-container"> </div></div>
Without:
<div class="wp-block-cover alignfull has-background-dim-10 has-background-dim clickable-cover is-style-default" style="min-height:100vh"><img loading="lazy" width="1625" height="1300" class="wp-block-cover__image-background wp-image-1503" alt="mars mars rover space travel robot 73910" src="https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg" style="object-position:50% 27%;" data-object-fit="cover" data-object-position="50% 27%" srcset="https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg 1625w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-300x240.jpeg 300w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-1024x819.jpeg 1024w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-768x614.jpeg 768w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-1536x1229.jpeg 1536w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-1568x1254.jpeg 1568w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-600x480.jpeg 600w" sizes="(max-width: 1625px) 100vw, 1625px"><noscript><img loading="lazy" width="1625" height="1300" class="wp-block-cover__image-background wp-image-1503" alt="mars mars rover space travel robot 73910" src="https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg" style="object-position:50% 27%" data-object-fit="cover" data-object-position="50% 27%" srcset="https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910.jpeg 1625w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-300x240.jpeg 300w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-1024x819.jpeg 1024w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-768x614.jpeg 768w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-1536x1229.jpeg 1536w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-1568x1254.jpeg 1568w, https://ivyrobots.com/wp-content/uploads/2021/05/mars-mars-rover-space-travel-robot-73910-600x480.jpeg 600w" sizes="(max-width: 1625px) 100vw, 1625px"></noscript><div class="wp-block-cover__inner-container"></div></div>
So
sizes="(max-width: 1625px) 100vw, 1625px"
is changed tosizes="(max-width: 750px) 100vw, 750px"
.On some monitors, the image is really blurry.
- The topic ‘Image CDN set wrong max-width for the cover block’ is closed to new replies.