You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble understanding how gatsby-plugin-sharp determines the image resolutions to generate. It feels like it does what it wants regardless of the options I specify.
For example, let's take this set of options in gatsby-config:
Based on this blurb in the documentation I would expect to only get resolutions of 800, 1200, and 1600 (i.e. 1x, 1.5x and 2x) when specifying srcSetBreakpoints: [800] but the .jpg files generated are:
300x169
600x338
800x450
900x506
1200x676
4000x2250 (original image)
I am noticing similar behavior when I specify this configuration in the query:
This discussion was converted from issue #24286 on October 19, 2020 09:28.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi team,
I'm having trouble understanding how
gatsby-plugin-sharp
determines the image resolutions to generate. It feels like it does what it wants regardless of the options I specify.For example, let's take this set of options in
gatsby-config
:Based on this blurb in the documentation I would expect to only get resolutions of
800, 1200, and 1600
(i.e. 1x, 1.5x and 2x) when specifyingsrcSetBreakpoints: [800]
but the.jpg
files generated are:I am noticing similar behavior when I specify this configuration in the query:
Any thoughts here?
Environment
Beta Was this translation helpful? Give feedback.
All reactions