[wp-trac] [WordPress Trac] #62413: WordPress 6.7 Auto-sizes Reducing Image Sizes
WordPress Trac
noreply at wordpress.org
Mon Nov 18 11:48:28 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 | performance
-------------------------------------------------+-------------------------
Comment (by SirLouen):
Replying to [comment:39 mukesh27]:
> Just show that Google chrome adds CSS from browser side. Checked in
`Version 130.0.6723.117` and `131.0.6778.70` version.
>
> {{{
> img:is([sizes="auto" i], [sizes^="auto," i]) {
> contain: size !important;
> contain-intrinsic-size: 300px 150px;
> }
> }}}
>
> Do we still needs to add anything from our side?
If you are having problems with this, soon a new patch will be released.
Simply by adding
{{{#!php
<?php
add_filter('wp_img_tag_add_auto_sizes', '__return_false');
}}}
It will solve the issue.
It's scheduled for next update 6.7.1
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62413#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list