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

fix(gatsby-plugin-image): Add outputPixelDensities to SHARP_ATTRIBUTES #36203

Merged
merged 7 commits into from Aug 2, 2022

Conversation

Bi11
Copy link
Contributor

@Bi11 Bi11 commented Jul 21, 2022

outputPixelDensities in StaticImage was ignored due to its absence in SHARP_ATTRIBUTES.

Related Issues

Fixes #32552
Fixes #33883

`outputPixelDensities` in `StaticImage` was ignored due to its absence in `SHARP_ATTRIBUTES`.
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 21, 2022
@wardpeet
Copy link
Contributor

Thanks @B11, can you also add a test for it in https://github.com/gatsbyjs/gatsby/tree/master/e2e-tests/visual-regression

@wardpeet wardpeet added topic: media Related to gatsby-plugin-image, or general image/media processing topics and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 22, 2022
@Bi11
Copy link
Contributor Author

Bi11 commented Jul 23, 2022

It just looks like a simple omission. And it usually doesn‘t cause a noticeable visual difference.

@LekoArts
Copy link
Contributor

Since this is a well tested React component we don't want to let this coverage slip, so we'd very much appreciate if you can add a test case to the mentioned suite. Let us know if you need any assistance, thanks!

@LekoArts LekoArts added the status: awaiting author response Additional information has been requested from the author label Jul 26, 2022
@Bi11 Bi11 dismissed a stale review via e820912 July 27, 2022 19:16
@Bi11
Copy link
Contributor Author

Bi11 commented Jul 27, 2022

I'm new to NodeJS and I'm not familiar with Gatsby yet. I encountered this issue, and I found it was just a simple omission in the source code, based on years of experience in other languages.

@LekoArts LekoArts removed the status: awaiting author response Additional information has been requested from the author label Aug 1, 2022
Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@LekoArts LekoArts changed the title fix(gatsby-plugin-image): Add outputPixelDensities to SHARP_ATTRIBUTES fix(gatsby-plugin-image): Add outputPixelDensities to SHARP_ATTRIBUTES Aug 2, 2022
@LekoArts LekoArts merged commit ae226b5 into gatsbyjs:master Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: media Related to gatsby-plugin-image, or general image/media processing topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants