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

Expose crop focus parameter and make consistent with base64 #1055

Merged
merged 1 commit into from
May 29, 2017
Merged

Expose crop focus parameter and make consistent with base64 #1055

merged 1 commit into from
May 29, 2017

Conversation

0x80
Copy link
Contributor

@0x80 0x80 commented May 28, 2017

I noticed that there was a difference in image cropping between base64 true/false, and found that one of them was using sharp.strategy.attention. I decided to set the default back to the sharp default (center) and expose all the different options in the API.

I also found that the force format fix from earlier today still had to be applied to the base64 part.

@gatsbybot
Copy link
Collaborator

gatsbybot commented May 28, 2017

Deploy preview ready!

Built with commit a688782

https://deploy-preview-1055--using-drupal.netlify.com

@KyleAMathews
Copy link
Contributor

@gatsbybot
Copy link
Collaborator

gatsbybot commented May 28, 2017

Deploy preview ready!

Built with commit a688782

https://deploy-preview-1055--gatsbyjs.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented May 28, 2017

Deploy preview ready!

Built with commit a688782

https://deploy-preview-1055--gatsbygram.netlify.com

@KyleAMathews
Copy link
Contributor

👍 to exposing the focus options. But let's keep the default to attention as it's the best general option lovell/sharp#295 (comment)

@0x80
Copy link
Contributor Author

0x80 commented May 28, 2017

OK! 👍 (force pushed in one commit)

@KyleAMathews
Copy link
Contributor

Glad you're cleaning things up!

@KyleAMathews KyleAMathews merged commit 64c02c1 into gatsbyjs:1.0 May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants