[wp-trac] [WordPress Trac] #41884: Twenty Seventeen: responsive (gallery) images are too large
WordPress Trac
noreply at wordpress.org
Tue Dec 3 17:26:14 UTC 2024
#41884: Twenty Seventeen: responsive (gallery) images are too large
-------------------------------------------------+-------------------------
Reporter: nosilver4u | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: Bundled Theme | Version: 4.8.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by nosilver4u):
@poena I've just replicated it myself with the classic editor plugin--wow,
that's been a while! It took me a bit to figure this out, but the images
used in the gallery must be uploaded while the crop thumbnails setting is
disabled. Otherwise, if an image has square thumbs, only the thumb will be
added to the img element since srcset requires matching aspect ratio. But
once an image has a thumbnail that is scaled and not cropped, WP will
happily add ALL of the various sizes to the srcset AND the original image.
Then we get a "100vw" sizes attribute that blows things up.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41884#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list