Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add additional default image sizes for srcset to accommodate wider viewports #11821
Images aligned to
These sizes should be closely tied to real-world data about viewport widths. Currently the only readily available data is screen sizes. One source is StatCounter's worldwide screen resolution stats. They break down as follows (October 2018):
Align automatically generated image sizes to browser stats taking into account 2x and 3x displays.
Proposed new sizing array:
This might seem like a lot, but for most images only the smaller sizes will be generated. For larger images, providing these additional sizes available for the
This permanently disassociates the physical image sizes from the classic display widths defined by WordPress. Which makes sense because the old modality of pixel widths defining small/medium/large image sizes no longer applies anyway.
referenced this issue
Nov 13, 2018
Added duplicate as Core ticket 45406: Add additional default image sizes for srcset to accommodate wider viewports.