[wp-trac] [WordPress Trac] #62413: WordPress 6.7 Auto-sizes Reducing Image Sizes
WordPress Trac
noreply at wordpress.org
Fri Nov 15 20:46:16 UTC 2024
#62413: WordPress 6.7 Auto-sizes Reducing Image Sizes
-------------------------------------------------+-------------------------
Reporter: dooperweb | Owner: joemcgill
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.7.1
Component: Media | Version: 6.7
Severity: normal | Resolution:
Keywords: has-testing-info has-patch has- | Focuses:
unit-tests needs-refresh | performance
-------------------------------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:29 flixos90]:
> As such, a revert of the feature would not be appropriate. Themes that
set `width: fit-content` unconditionally on images should be encouraged to
fix this. For the small portion of WordPress sites affected by this
problem, I think a proper solution would be to introduce an easy-to-use
filter that allows to disable the `sizes="auto"` feature specifically.
This would be a better solution for those sites than to also disable lazy-
loading entirely.
Sounds good, +1.
> @azaozz I'll work on a PR to add a simpler filter for this.
Great! Wondering if a filter for the whole attribute value of `sizes`
would be better here? Seems it would make it trivial to add/remove/control
`auto`, and may be more useful in the long run.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62413#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list