Skip to content
Discussion options

You must be logged in to vote

The new image plugin is the same as the old plugin in that regard. If you used this in the past:

<Img fluid={cover_image} alt={cover_image_alt} />

Then you'll now use this:

<GatsbyImage image={cover_image} alt={cover_image_alt} />

Your cover_image needs to be in the new shape of course, so not childImageSharp.fluid but childImageSharp.gatsbyImageData

https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@LarsEjaas
Comment options

@LekoArts
Comment options

@LarsEjaas
Comment options

@LekoArts
Comment options

@LarsEjaas
Comment options

Answer selected by LarsEjaas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants