-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore: Update image API to remove maxWidth/maxHeight #28985
Conversation
The types in |
b36c8c6
to
201128a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be happy to merge this if you're ready for it to come out of draft
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Going forward, fixed/constrained images will take width and height as parameters, rather than the previous option of maxWidth/maxHeight for fluid and constrained images.
Open question: Right now fluid can take width and height. At what level do we want to warn the user to use breakpoints instead? Or do we want to cover that in the forthcoming breakpoints PR?
(Note that the failing tests are based on the plugin helpers, I'm missing something there)
READMEs outside of gatsby-plugin-image are also not updated as versioning those is not clear. Should determine that before merging this PR.
[ch22681]