[gatsby-plugin-image] outputPixelDensities
prop has no effect on StaticImage
#33883
Unanswered
SimpleCreations
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
outputPixelDensities
does not work onStaticImage
, however it is listed in the documentation among other props that do work, e.g.sizes
:https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image/#all-options
And it works as expected with dynamic images as a GraphQL parameter.
I was wondering whether this is a bug (and I should create an issue for it) or there is something I'm missing.
Here's an example:
Which produces:
srcset="/static/fb3546d2eeacbd9b04dd264025320655/41438/main.jpg 152w, /static/fb3546d2eeacbd9b04dd264025320655/4ac39/main.jpg 304w, /static/fb3546d2eeacbd9b04dd264025320655/a0a33/main.jpg 608w, /static/fb3546d2eeacbd9b04dd264025320655/23bcc/main.jpg 1216w"
While I expect it to generate
464w
,608w
,928w
and1216w
.Beta Was this translation helpful? Give feedback.
All reactions