-
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
[gatsby-source-contentful] Remove default crop focus #2917
[gatsby-source-contentful] Remove default crop focus #2917
Conversation
Deploy preview ready! Built with commit cb1bf35 |
Deploy preview ready! Built with commit 05ed07d |
Deploy preview ready! Built with commit cb1bf35 |
Makes sense! Which commit added the faces fallback! |
Glad to hear Gatsby is working well for ya! |
@KyleAMathews they were added here: 14bfcb1 |
Huh, no idea what I was seeing! Thanks for the PR! |
Hiya @sarahatwork! 👋 This is definitely late, but on behalf of the entire Gatsby community, I wanted to say thank you for being here. Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If you have questions, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! 💪💜 |
Thanks @jlengstorf! I claimed some discount codes and have joined the org 🙌 |
First of all, thanks for the great library! Three weeks into a Gatsby project and loving it so far.
On my current project, I ran into an issue where I'm unable to specify that Contentful use its default (center) focus for cropping images. When I don't apply a focus property,
faces
is applied automatically 😬This PR removes the default
faces
crop focus applied to Contentful image queries. The original commit where this content was added mentioned it was necessary to trigger a crop, but I haven't found this to be true. Let's look at the image from the tests. Here's the original:The code on
master
generates a query like this: http://images.contentful.com/ubriaw6jfhm1/10TkaLheGeQG6qQGqWYqUI/5421d3108cbb699561acabd594fa2cb0/ryugj83mqwa1asojwtwb.jpg?w=450&h=399&q=50&fit=fill&f=facesWhen we remove the focus option, we still get a cropped photo, but it's cropped to the center of the image: http://images.contentful.com/ubriaw6jfhm1/10TkaLheGeQG6qQGqWYqUI/5421d3108cbb699561acabd594fa2cb0/ryugj83mqwa1asojwtwb.jpg?w=450&h=399&q=50&fit=fill