[wp-trac] [WordPress Trac] #44456: srcset max-width set to image width
WordPress Trac
noreply at wordpress.org
Tue Apr 7 03:05:48 UTC 2020
#44456: srcset max-width set to image width
--------------------------+------------------------------
Reporter: mikedunn | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.9.6
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):
* component: General => Media
Comment:
Hi and thanks for the ticket!
I'm setting the component to Media for better visibility.
It's worth noting that the `max-width` value can be filtered using
`wp_calculate_image_sizes` for content images (or
`wp_get_attachment_image_attributes` for featured images).
[https://core.trac.wordpress.org/browser/tags/5.4/src/wp-
content/themes/twentysixteen/functions.php#L512 See Twenty Sixteen theme
for an example].
Also, since WordPress 5.3, original images (JPEGs) can be scaled when
uploaded. The default maximum dimension is 2560px, and the
[https://developer.wordpress.org/reference/hooks/big_image_size_threshold/
big_image_size_threshold] filter can adjust that value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44456#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list