Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accurate Sizes: Incorporate layout constraints in image sizes calculations #1738

Merged

Conversation

joemcgill
Copy link
Member

Summary

This PR is merges the initial support for incorporating layout constraints in the calculation of img sizes attributes into the Enhanced Responsive Images plugin.

See #1511

Relevant technical choices

PRs included:

mukeshpanchal27 and others added 30 commits October 22, 2024 20:29
Merge latest changes to feature branch
Merge latest changes to feature branch
Accurate sizes: Calculate image sizes during block rendering
Auto sizes: Reorganize file structure by feature
joemcgill and others added 16 commits December 5, 2024 10:48
This removes the need to pass whether there is a parent block by comparing the constraints of the parent block prior to calling `auto_sizes_calculate_width()`.
Accurate sizes: Pass parent alignment context to images

Co-authored-by: joemcgill <[email protected]>
Co-authored-by: mukeshpanchal27 <[email protected]>
Co-authored-by: felixarntz <[email protected]>
Co-authored-by: westonruter <[email protected]>
…alignment-widths

Accurate sizes: Support relative alignment widths
@joemcgill joemcgill added [Type] Feature A new feature within an existing module [Plugin] Enhanced Responsive Images Issues for the Enhanced Responsive Images plugin (formerly Auto Sizes) labels Dec 13, 2024
@joemcgill joemcgill added this to the auto-sizes n.e.x.t milestone Dec 13, 2024
@joemcgill joemcgill changed the title Auto Sizes: Incorporate layout constraints in image sizes calculations Accurate Sizes: Incorporate layout constraints in image sizes calculations Dec 13, 2024
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mukeshpanchal27 <[email protected]>
Co-authored-by: felixarntz <[email protected]>
Co-authored-by: joemcgill <[email protected]>
Co-authored-by: westonruter <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Enhanced Responsive Images Issues for the Enhanced Responsive Images plugin (formerly Auto Sizes) [Type] Feature A new feature within an existing module
Projects
Status: Done 😃
Development

Successfully merging this pull request may close these issues.

Incorporate layout constraints from ancestor blocks into the sizes calculations
4 participants